Is there a way to have nf-schema not print ‘abstr...
# nf-schema
j
Is there a way to have nf-schema not print ‘abstract’ JSON specific error messages? In a
nextflow_schema.json
file I’ve added a conditional check:
Copy code
json
            },
            "if": {
                "properties": {
                    "foo": {
                        "const": "bar"
                    }
                }
            },
            "then": {
                "required": ["baz"]
            }
        },
But I get two error messages:
Copy code
* 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 oen
n
Not directly, we already filter out a couple of those messages, but seems like you found a new one. Can you open an issue to filter for this one too?
👍 1
j
Thank yu!
n
Thanks!!!