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
thing is "an additional property" in the schema and the specification allows additional properties to be present. It's only if the value of defined keyword were invalid, schema validation would fail, e.g. minimum: false instead of a number.
Usually you don't have to explicitly validate schemas - they are validated when they are added to Ajv instance (unless you disable it).
@epoberezkin I can't re-open but here's the edge-case that I brought up on Gitter. Let me know if you'd like me to open a new issue or if you can edit the original description here.
What version of Ajv are you using? Does the issue happen if you use the latest version?
Latest
Ajv options object (see https://github.com/epoberezkin/ajv#options):
JSON Schema (please make it as small as possible to reproduce the issue):
Data (please make it as small as posssible to reproduce the issue):
Your code (please use
options
,schema
anddata
as variables):Validation result, data AFTER validation, error messages:
What results did you expect?
returns
false
Are you going to resolve the issue?
I'd be happy to, unless the issue is I'm doing something wrong (likely)
The text was updated successfully, but these errors were encountered: