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
So, I'm trying validate the data by this schema. And faced with unexpected behavior. In this example I've got error with age field instead of name. So I expect that name field at first level in object must be validated before age.
By the way, in another example, if I've got an empty string in name field, I have a valid data.
I've tried to change the schema like this using allOf:
What version of Ajv are you using? Does the issue happen if you use the latest version?
version: 8.17.1 (latest)
Ajv options object
JSON Schema
Sample data
Validation result, data AFTER validation, error messages
What results did you expect?
So, I'm trying validate the data by this
schema
. And faced with unexpected behavior. In this example I've got error withage
field instead ofname
. So I expect thatname
field at first level in object must be validated beforeage
.By the way, in another example, if I've got an empty string in
name
field, I have a validdata
.I've tried to change the schema like this using
allOf
:Same result.
Are you going to resolve the issue?
I'm asking your comment and advice first of all.
The text was updated successfully, but these errors were encountered: