nextflow-io / nf-schema

Functionality for working with pipeline and sample sheet schema files in Nextflow pipelines
https://nextflow-io.github.io/nf-schema/
Apache License 2.0
12 stars 21 forks source link

Empty values are also validated (for being unique) #59

Closed Joon-Klaps closed 1 month ago

Joon-Klaps commented 1 month ago

Empty values are supposedly not being validated. However, when having 2 empty values that belong to a field that should be unique get flagged as non-unique.

Example samplesheet: mapping_constrains.json Example schema: mapping_constrains.csv

Error Message:

ERROR ~ Validation of pipeline parameters failed!

 -- Check '.nextflow.log' file for details
The following invalid input values have been detected:

* --mapping_constrains (/workspace/viralgenie/assets/samplesheets/mapping_constrains.csv): Validation of file failed:
        -> Entry 3: Detected non-unique combination of the following fields: [species, segment]
        -> Entry 3: Detected non-unique combination of the following fields: [id]
        -> Value does not match against the schemas at indexes [0, 1]
Joon-Klaps commented 1 month ago

Version used: nf-schema@2.1.1

nvnieuwk commented 1 month ago

Added in 2.1.2 :rocket: