Skip to content

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
Base automatically changed from 2.5.0dev to master August 28, 2025 07:11
Copy link
Collaborator

@mirpedrol mirpedrol left a 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)"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

suggestion
We could make it a warning and use admonitions so it stands out more

Copy link
Collaborator Author

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

@nvnieuwk
Copy link
Collaborator Author

I don't see where validation.mode that you describe in the PR description is implemented. How does this work?

We decided to drop this because it does basically the same as specifying your schema draft (2020-12 vs nextflow-schema)

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

3 participants