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 🤗
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.jsonfile, 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 🤗