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
Add full schema pointer matching capability to schema.ValidationErrorMatch()
When a schema validation error is related to one of the logic inversion keywords ("not", "oneOf"), the schema pointer
path provided in the schema validation package's validation results data does not extend past that keyword.
Capability has now been added for the error to be matched against the full JSON pointers under the problematic keywords.
In combination with structuring the schemas in a manner that puts the logic inversion keywords at the lowest possible
level, this makes it possible to fully determine the cause of a validation failure.
// The schema validator does not provide full pointer past logic inversion keywords to the lowest level keywords related to the validation error cause.
123
+
// Therefore the sub-keywords must be checked for matches in order to be able to interpret the exact cause of the failure.
// validationErrorSchemaSubPointerMatch recursively checks JSON pointers of all keywords under the parent pointer for match against a regular expression.
0 commit comments