-
-
Notifications
You must be signed in to change notification settings - Fork 611
misleading erros when failing anyof tests #646
Copy link
Copy link
Closed
Labels
EnhancementSome new desired functionalitySome new desired functionality
Description
I discovered that anyOf related errors can be very mistleading.
- jobs: # must fail as correct is 'job'
Validating snippet above with https://github.com/pycontribs/zuul-lint/blob/master/zuul_lint/zuul-schema.json would fail with a misleading error:
'nodeset' is a required property
Failed validating 'required' in schema[0]:
{'required': ['nodeset']}
On instance:
{'jobs': {'name': 'foo'}}
That schema allows multiple value and nodeset happens to just one of several. As you can see what user gets is an erros that makes no sense for him.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
EnhancementSome new desired functionalitySome new desired functionality