-
Notifications
You must be signed in to change notification settings - Fork 152
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update changelog with JSON schema improvements #459
base: dev
Are you sure you want to change the base?
Conversation
|
"anyOf": [ | ||
{ | ||
"type": "string", | ||
"format": "file-path", | ||
"pattern": "^\\S+\\.f(ast)?q\\.gz$" | ||
}, | ||
{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can remove this anyOf section and add the keywords from the first section to the root of the fastq_2
parameter
@@ -18,7 +18,7 @@ | |||
"exists": true, | |||
"schema": "assets/schema_input.json", | |||
"mimetype": "text/csv", | |||
"pattern": "^\\S+\\.csv$", | |||
"pattern": "^\\S+\\.(csv|tsv)$", | |||
"description": "Path to comma-separated file containing information about the samples in the experiment.", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"description": "Path to comma-separated file containing information about the samples in the experiment.", | |
"description": "Path to a samplesheet file containing information about the samples in the experiment.", |
}, | ||
"email_on_fail": { | ||
"type": "string", | ||
"description": "Email address for completion summary, only when pipeline fails.", | ||
"fa_icon": "fas fa-exclamation-triangle", | ||
"pattern": "^([a-zA-Z0-9_\\-\\.]+)@([a-zA-Z0-9_\\-\\.]+)\\.([a-zA-Z]{2,5})$", | ||
"pattern": "^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the old pattern was fine already :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wow, well done! Here are some small comments!
Thank you for all the comments! I will review everything and address them in the following days (weekend, April 5-6). |
Copy the master branch only
)dev
branch and sync the upstream changes (Sync fork
->Update branch
)json-schema-improvements
with thedev
branch as base in the forkjson-schema-improvements
branch of the fork either locally (git clone
) or online (via Github Codespaces, GitPod...)nextflow_schema.json
file"$schema"
is"https://json-schema.org/draft/2020-12/schema"
. The pipeline should be updated to nf-schema if this is not the case. See the migration guide on how to do thisassets/schema_input.json
nextflow run main.nf -profile test,docker --outdir results -stub
to check for any failures in validation with the basic test setupdev
branch of the nf-core repositoryReady to review
(PR: )Done