Add conditional validation depending on the parameter type to the meta-schema #2
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Add conditional validation for all fields depending on the parameter type to the meta-schema.
Additionally this also checks for unevaluated properties to catch typos and wrong properties using the
unevaluatedProperties
feature.The changes were tested on all nf-core pipelines:
Testing on all nf-core pipelines
Get the pipeline schema files:
Run the validation:
Full output:
airrflow_schema.json
ampliseq_schema.json
atacseq_schema.json
bacass_schema.json
bactmap_schema.json
bamtofastq_schema.json
cageseq_schema.json
callingcards_schema.json
chipseq_schema.json
circdna_schema.json
circrna_schema.json
clipseq_schema.json
coproid_schema.json
createpanelrefs_schema.json
createtaxdb_schema.json
crisprseq_schema.json
crisprvar_schema.json
cutandrun_schema.json
ddamsproteomics_schema.json
deepvariant_schema.json
demultiplex_schema.json
denovohybrid_schema.json
detaxizer_schema.json
diaproteomics_schema.json
differentialabundance_schema.json
dualrnaseq_schema.json
eager_schema.json
epitopeprediction_schema.json
exoseq_schema.json
fastquorum_schema.json
fetchngs_schema.json
funcscan_schema.json
genomeannotator_schema.json
genomeassembler_schema.json
genomeskim_schema.json
gwas_schema.json
hgtseq_schema.json
hicar_schema.json
hic_schema.json
hlatyping_schema.json
imcyto_schema.json
isoseq_schema.json
kmermaid_schema.json
liverctanalysis_schema.json
lncpipe_schema.json
mag_schema.json
marsseq_schema.json
mcmicro_schema.json
metaboigniter_schema.json
metapep_schema.json
metatdenovo_schema.json
methylseq_schema.json
mhcquant_schema.json
mnaseseq_schema.json
molkart_schema.json
multiplesequencealign_schema.json
nanoseq_schema.json
nanostring_schema.json
nascent_schema.json
neutronstar_schema.json
pangenome_schema.json
pathogensurveillance_schema.json
pgdb_schema.json
phageannotator_schema.json
phyloplace_schema.json
pixelator_schema.json
proteinfold_schema.json
proteomicslfq_schema.json
quantms_schema.json
radseq_schema.json
rangeland_schema.json
raredisease_schema.json
readsimulator_schema.json
riboseq_schema.json
rnadnavar_schema.json
rnafusion_schema.json
rnaseq_schema.json
rnasplice_schema.json
rnavar_schema.json
sammyseq_schema.json
sarek_schema.json
scflow_schema.json
scrnaseq_schema.json
slamseq_schema.json
smartseq2_schema.json
smrnaseq_schema.json
spatialtranscriptomics_schema.json
spinningjenny_schema.json
ssds_schema.json
taxprofiler_schema.json
variantcatalogue_schema.json
vipr_schema.json
viralintegration_schema.json
viralrecon_schema.json
The conditional validation catches some extra issues:
mimetype
and orschema
being set without"format": "file-path"
.mandatory
(should be passed inrequired
),help
(should behelp_text
)'1.0'
instead of1.0
)This is a new PR moved from nf-validation: nextflow-io#146