This repository has been archived by the owner on Aug 20, 2024. It is now read-only.
forked from nextflow-io/nf-schema
-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #143 from awgymer/137-nf-validation-fails-when-num…
…ber-parameters-are-set-to-0 Don't remove numeric 0 values from validation
- Loading branch information
Showing
3 changed files
with
114 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
62 changes: 62 additions & 0 deletions
62
plugins/nf-validation/src/testResources/nextflow_schema_required_numerics.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
{ | ||
"$schema": "http://json-schema.org/draft-07/schema", | ||
"$id": "https://raw.githubusercontent.com/nf-core/testpipeline/master/nextflow_schema.json", | ||
"title": "nf-core/testpipeline pipeline parameters", | ||
"description": "this is a test", | ||
"type": "object", | ||
"definitions": { | ||
"input_output_options": { | ||
"title": "Input/output options", | ||
"type": "object", | ||
"fa_icon": "fas fa-terminal", | ||
"description": "Define where the pipeline should find input data and save output data.", | ||
"required": ["input", "outdir"], | ||
"properties": { | ||
"input": { | ||
"type": "string", | ||
"format": "file-path", | ||
"mimetype": "text/csv", | ||
"pattern": "^\\S+\\.(csv|tsv|yaml|json)$", | ||
"description": "Path to comma-separated file containing information about the samples in the experiment.", | ||
"help_text": "You will need to create a design file with information about the samples in your experiment before running the pipeline. Use this parameter to specify its location. It has to be a comma-separated file with 3 columns, and a header row. See [usage docs](https://nf-co.re/testpipeline/usage#samplesheet-input).", | ||
"fa_icon": "fas fa-file-csv" | ||
}, | ||
"outdir": { | ||
"type": "string", | ||
"format": "directory-path", | ||
"description": "The output directory where the results will be saved. You have to use absolute paths to storage on Cloud infrastructure.", | ||
"fa_icon": "fas fa-folder-open" | ||
} | ||
} | ||
}, | ||
"numeric_options": { | ||
"title": "Numeric pipeline options", | ||
"type": "object", | ||
"fa_icon": "fas fa-dna", | ||
"description": "Numeric options to be tested", | ||
"required": ["integer", "number"], | ||
"properties": { | ||
"integer": { | ||
"type": "integer", | ||
"description": "An integer parameter.", | ||
"fa_icon": "fas fa-users-cog", | ||
"help_text": "Integer value" | ||
}, | ||
"number": { | ||
"type": "number", | ||
"description": "A number parameter.", | ||
"fa_icon": "fas fa-users-cog", | ||
"help_text": "Number value" | ||
} | ||
} | ||
} | ||
}, | ||
"allOf": [ | ||
{ | ||
"$ref": "#/definitions/input_output_options" | ||
}, | ||
{ | ||
"$ref": "#/definitions/numeric_options" | ||
} | ||
] | ||
} |