Skip to content

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

Draft
wants to merge 11 commits into
base: 2.5.0dev
Choose a base branch
from

Conversation

nvnieuwk
Copy link
Collaborator

This PR adds two new features:

  1. Support for the custom meta schema for parameters as specified in https://github.com/nextflow-io/schema-spec
  2. A new config option: validation.mode that can be set to limited to ensure compatibility with nf-core tooling, Seqera platform and others

This PR should not be merged before a tagged version of the schema has been released

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"
Copy link
Member

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.

Copy link
Collaborator Author

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

@nvnieuwk nvnieuwk linked an issue Mar 19, 2025 that may be closed by this pull request
Base automatically changed from 2.4.0dev to master April 3, 2025 13:13
@nvnieuwk nvnieuwk changed the base branch from master to 2.5.0dev April 7, 2025 15:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Check schema against meta-schema
2 participants