Skip to content

Commit

Permalink
Fix schema in preparation for new nf-schema patch
Browse files Browse the repository at this point in the history
  • Loading branch information
jfy133 committed Oct 17, 2024
1 parent 7ce0358 commit dbe44c1
Showing 1 changed file with 4 additions and 14 deletions.
18 changes: 4 additions & 14 deletions assets/schema_input.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,13 @@
"type": "object",
"properties": {
"id": {
"type": "string",
"type": ["string", "integer"],
"pattern": "^\\S+$",
"uniqueItems": true,
"errorMessage": "Sequence reference name must be provided and cannot contain spaces",
"meta": ["id"]
},
"taxid": {
"type": "integer",
"uniqueItems": true,
"errorMessage": "Please provide a valid taxonomic ID in integer format",
"meta": ["taxid"]
},
Expand All @@ -33,7 +31,6 @@
}
],
"uniqueItems": true,
"errorMessage": "FASTA file for nucleotide sequence cannot contain spaces and must have a valid FASTA extension (fasta, fna, fa, fas, faa), optionally gzipped",
"exists": true,
"format": "file-path"
},
Expand All @@ -50,19 +47,12 @@
}
],
"uniqueItems": true,
"errorMessage": "FASTA file for amino acid reference sequence cannot contain spaces and must have a valid FASTA extension (fasta, fna, fa, fas, faa), optionally gzipped",
"exists": true,
"format": "file-path"
}
},
"required": ["id", "taxid"],
"anyOf": [
{
"required": ["fasta_dna"]
},
{
"required": ["fasta_aa"]
}
]
}
"anyOf": [{ "required": ["fasta_dna"] }, { "required": ["fasta_aa"] }]
},
"allOf": [{ "uniqueEntries": ["id"] }, { "uniqueEntries": ["fasta_dna"] }, { "uniqueEntries": ["fasta_aa"] }]
}

0 comments on commit dbe44c1

Please sign in to comment.