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 am trying to validate against a schema that does not allow unevaluated properties and I'm getting the following error every single time: false schema always fails. I managed to reproduce the behavior on a smaller schema:
AFAIR this is a known issue also highlighted by a failing test from the failing test suite. The problem is that in the "unevaluatedProperties" implementation only the properties which are one nesting level deeper are marked as evaluated, not by adjacent keywords. By "one nesting level deeper" I mean nested by allOf/anyOf/oneOf/if-then-else.
As a quick workaround I suggest writing your schema as
Hi,
I am trying to validate against a schema that does not allow unevaluated properties and I'm getting the following error every single time:
false schema always fails
. I managed to reproduce the behavior on a smaller schema:Schema:
{ "$schema": "http://json-schema.org/draft/2020-12/schema#", "type": "object", "properties": { "key2": { "type": "string" } }, "unevaluatedProperties": false }
Document to validate:
{ "key": "val" }
Any thoughts on this?
Thanks in advance,
Florin
The text was updated successfully, but these errors were encountered: