Skip to content

Validate parameters against schema at pipeline runtime #426

@ewels

Description

@ewels

Now that we have a JSON Schema file describing parameters, we should be able to check that all supplied params are expected and valid (correct variable type, one of allowed choices, matching given regex etc) when a pipeline is launched.

This will likely need to go hand-in-hand with templating and linting for the nextflow_schema.json file, as most params are probably still not present there. We may also need one of these files for the shared configs.

I made a quick start on a draft function here - will make a PR when it gets a little further, but discussion on the concept is welcome 🤗

Metadata

Metadata

Assignees

Labels

templatenf-core pipeline/component template

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions