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
first of all thank you for the effort to provide a Jackson-compatible JSONSchema validator.
I have recently encountered an error where both IntelliJ's integrated JSONSchema validator and an online validator accept a given input, but json-schema-validator rejects it.
The issue is related to state handling within OneOfValidator, but I was only able to trigger it by reducing my specific inputs -- just nesting oneOf did not do the job.
At its core this seems to be related to the parent still holding a reference to the once-pointed-to validatorState, even after .remove() is called on it and nodeMatches is false for that instance.
The following was the most reduced I could come up with that still triggers the issue; I'm aware that it is still verbose, so sorry for that.
Hi,
first of all thank you for the effort to provide a Jackson-compatible JSONSchema validator.
I have recently encountered an error where both IntelliJ's integrated JSONSchema validator and an online validator accept a given input, but
json-schema-validator
rejects it.The issue is related to state handling within
OneOfValidator
, but I was only able to trigger it by reducing my specific inputs -- just nestingoneOf
did not do the job.At its core this seems to be related to the parent still holding a reference to the once-pointed-to
validatorState
, even after.remove()
is called on it andnodeMatches
is false for that instance.The following was the most reduced I could come up with that still triggers the issue; I'm aware that it is still verbose, so sorry for that.
The text was updated successfully, but these errors were encountered: