James Fellows Yates
11/18/2026, 10:38 AMnextflow_schema.json file I’ve added a conditional check:
json
},
"if": {
"properties": {
"foo": {
"const": "bar"
}
}
},
"then": {
"required": ["baz"]
}
},
But I get two error messages:
* Missing required parameter(s): baz
* Value matches against schema from 'if' but does not match against schema from 'then'
The first one makes sense, but the second is a generic message related to JSON which is not that useful/actionable for a user.
Is there a way to to tell nf-schema to not print that second oenNicolas Vannieuwkerke
11/18/2026, 10:39 AMJames Fellows Yates
11/18/2026, 10:44 AMJames Fellows Yates
11/18/2026, 10:44 AMNicolas Vannieuwkerke
11/18/2026, 10:44 AM