-
Notifications
You must be signed in to change notification settings - Fork 828
Json schema improvements #1528
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
Json schema improvements #1528
Conversation
assets/schema_input.json
Outdated
| "format": "file-path", | ||
| "exists": true, | ||
| "errorMessage": "GZIP-compressed FastQ file for reads 2 cannot contain spaces and must have extension '.fq.gz' or '.fastq.gz'", | ||
| "anyOf": [ |
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 part and only use the "pattern" keyword that's inside of it
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.
on it, thanks!
…r improved clarity
nextflow_schema.json
Outdated
| "pipelines_testdata_base_path": { | ||
| "type": "string", | ||
| "minLength": 1, | ||
| "pattern": "^(https?://\\S+|/[^\\s]+|\\.{0,2}/[^\\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.
| "pattern": "^(https?://\\S+|/[^\\s]+|\\.{0,2}/[^\\s]+)$", |
This does not need to be a HTTPS URL and can also be a local or cloud file-path. Adding this pattern would restrict this
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 are right, I wanted to make a pattern with an optional https, but it may fail and be too restrictive. I will roll it back.
Co-authored-by: Nicolas Vannieuwkerke <[email protected]>
nvnieuwk
left a comment
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.
Some comments, but wow this is really impressive! Well done!
…int in nextflow_schema.json
nvnieuwk
left a comment
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.
Good job!
…to use 'yyyy-MM-dd_HH-mm-ss' format
nvnieuwk
left a comment
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.
LGTM!
maxulysse
left a comment
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.
<3
|
Could you please add a motivating description to the PR describing what you've done and why? |
pinin4fjords
left a comment
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.
Looks good though!
PR checklist
nf-core pipelines lint).nextflow run . -profile test,docker --outdir <OUTDIR>).nextflow run . -profile debug,test,docker --outdir <OUTDIR>).CHANGELOG.mdis updated.Description
This PR improves the
nextflow_schema.jsonand theschema_input.jsonfiles for the nf-core/rnaseq pipeline as part of the March 2025 JSON Schema Improvements Hackathon.The main goals of these updates are to enhance schema consistency, improve validation error messages, and clarify the help_text and description fields. These changes aim to make the pipeline easier to configure and provide more informative feedback to users.
We followed the hackathon checklist throughout the process.
All changes were tested using:
nextflow run main.nf -profile test,docker --outdir results -stubThe schema remains valid, and no validation issues were observed.