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 have a test in my project for infinite data size. This was working well (i.e. not crashing) until the 0.17 upgrade. I'm using Draft202012 for the following schema:
This is certainly related to my PR introducing support for unevaluatedProperties in #419.
Checking your schema in Hyperjump, it is indeed a valid configuration, and will only emit validation errors at a depth that is correlated with the input itself.
We could likely copy what the $ref validator itself does, which is to hold on to the relevant compilation context and lazily instantiate validator nodes as needed... which would allow for building the $ref-specific subvalidator used for unevaluatedProperties as deep as the input data needs it to be, without recursing infinitely right off the bat.
Definitely a hindsight on my part to not follow what $ref did from the beginning. I was already looking into another bug that I found with my work on unevaluatedProperties, so I'll see if I can fix this at the same time.
I have a test in my project for infinite data size. This was working well (i.e. not crashing) until the 0.17 upgrade. I'm using
Draft202012
for the following schema:I am no jsonschema expert, but I believe this is a valid schema that should accept no JSON documents, because of the required infinite size.
The text was updated successfully, but these errors were encountered: