-
Notifications
You must be signed in to change notification settings - Fork 28
Add support for official Nextflow parameters meta schema #113
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
base: master
Are you sure you want to change the base?
Conversation
private Pattern uriPattern = Pattern.compile('^#/(\\d*)?/?(.*)$') | ||
// TODO Change the base URL once the meta schema has been officially released | ||
final private Map<String,String> supportedCustomParameterDrafts = [ | ||
"https://github.com/nextflow-io/schema-spec/raw/refs/heads/main/parameters_meta_schema.json": "/schemas/parameters/1.0/parameters_meta_schema.json" |
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.
This has to be versioned surely? main
will be a moving target.
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.
Yes that's what the TODO
statement is for :). I can't put a versioned URL there as it doesn't exist yet
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 don't see where validation.mode
that you describe in the PR description is implemented. How does this work?
## Nested parameters | ||
|
||
!!! example "New feature in v2.1.0" | ||
!!! example "Not supported in by the official [Nextflow specifications](https://github.com/nextflow-io/schema-spec/blob/main/parameters_meta_schema.json)" |
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.
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 idea! I'll update this PR fully once the schema has been released
We decided to drop this because it does basically the same as specifying your schema draft (2020-12 vs nextflow-schema) |
This PR adds two new features:
validation.mode
that can be set tolimited
to ensure compatibility with nf-core tooling, Seqera platform and othersThis PR should not be merged before a tagged version of the schema has been released