You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
data that fails validation (only remove the required "name" field):
- min: 0max: 2step: 1setValue: touch A.$value
I get this error report:
--- All found errors ---
["Cannot find required key 'name'. Path: '/0'", "Cannot find required key 'name'. Path: '/0'", "Cannot find required key 'enum'. Path: '/0'", "Key 'min' was not defined. Path: '/0'", "Key 'max' was not defined. Path: '/0'", "Key 'step' was not defined. Path: '/0'"]
<SchemaError: error code 2: Schema validation failed:
Cannot find required key 'name'. Path: '/0'.
Cannot find required key 'name'. Path: '/0'.
Cannot find required key 'enum'. Path: '/0'.
Key 'min' was not defined. Path: '/0'.
Key 'max' was not defined. Path: '/0'.
Key 'step' was not defined. Path: '/0'.: Path: '/'>
In this case it is reporting all validation failures of the seq item against the both choices of schema for a seq item. An improvement to only print the errors for the choice of schema for which there were the minimum number of failures which would yield this:
--- All found errors ---
["Cannot find required key 'name'. Path: '/0'"]
<SchemaError: error code 2: Schema validation failed:
Key 'step' was not defined. Path: '/0'.: Path: '/'>
The text was updated successfully, but these errors were encountered:
schema:
data that passes validation:
data that fails validation (only remove the required "name" field):
I get this error report:
--- All found errors ---
["Cannot find required key 'name'. Path: '/0'", "Cannot find required key 'name'. Path: '/0'", "Cannot find required key 'enum'. Path: '/0'", "Key 'min' was not defined. Path: '/0'", "Key 'max' was not defined. Path: '/0'", "Key 'step' was not defined. Path: '/0'"]
<SchemaError: error code 2: Schema validation failed:
In this case it is reporting all validation failures of the seq item against the both choices of schema for a seq item. An improvement to only print the errors for the choice of schema for which there were the minimum number of failures which would yield this:
--- All found errors ---
["Cannot find required key 'name'. Path: '/0'"]
<SchemaError: error code 2: Schema validation failed:
The text was updated successfully, but these errors were encountered: