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
I need to have a schema allowing extra fields only under one specific node (ExtensionProperties).
It works well using "additionalProperties": false with simple schemas:
but it fails also on Nestedppty, which should be ok
Am I doing something wrong or is there an issue when several "unevaluatedProperties": false are nested ?
The text was updated successfully, but these errors were encountered:
(Even though this issue itself needs simplifying to be ready to look at) another example of unevaluatedProperties producing poor error messages is the simple schema (which I originally posted to #1074):
which can be especially bad if the oneOf (or applicator in general) produces some very deep error. Here it's probably best_match that needs enhancing to traverse into the applicators for this example.
I need to have a schema allowing extra fields only under one specific node (ExtensionProperties).
It works well using "additionalProperties": false with simple schemas:
This data is ok
and this one fails validation as expected
But when I have some allOf, I need to use "unevaluatedProperties": false as explained in the documentation
It works well with simple schemas
This data fails the validation as expected (on rootppty2 and Nestedppty2)
But when I am adding array in the allOf part I am facing issues
This schema does not fail validation on additional fields in the array
for example this data should fail validation on nestedarrayInternalpty2
but it fails also on Nestedppty, which should be ok
Am I doing something wrong or is there an issue when several "unevaluatedProperties": false are nested ?
The text was updated successfully, but these errors were encountered: