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
The above json is deemed invalid. Both array entries should be valid, however ajv deems the last entry to be invalid: data/1/answer/constructor must be object
At first it seems like ajv treats the constructor property as a required property. However if I rename the property from constructor to constructor2 everything works as expected. (see Recording)
schema:
json
The above json is deemed invalid. Both array entries should be valid, however ajv deems the last entry to be invalid:
data/1/answer/constructor must be object
At first it seems like ajv treats the
constructor
property as a required property. However if I rename the property fromconstructor
toconstructor2
everything works as expected. (see Recording)command:
ajv validate -s schema.json -d data.json --spec=draft2020 --errors=text
version:
[email protected]
The text was updated successfully, but these errors were encountered: