Closed LucieContamin closed 4 months ago
Thanks for reporting @LucieContamin . That's by design. First the config needs to pass jsonvalidate
validation against the schema (which it doesn't pass currently with additional properties) and then the more dynamic checks performed in R are run. It would be an execution error nightmare to try and develop and run dynamic validations on configs that we hadn't at least confirmed the basic structure was dependable.
Perhaps a note in the docs about this would be useful though?
It makes total sense, thanks for the reply! Maybe a note in the docs is a good idea.
Following my testing on https://github.com/LucieContamin/hub_test, I noticed another issue. I don't think it's necessary to fix it now, especially if we allow additional properties, but I thought it might be worth noting.
If I make a typo in the
"compound_taskid_set"
in the tasks.json file, I did not get any error message if I also have an error for additional properties. However, if I remove the additional properties, I have thecompound_taskid_set value(s) 'scenario' not valid task id(s).
error.For example: