We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
epoberezkin
Learn more about funding links in repositories.
Report abuse
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
What version of Ajv are you using? Does the issue happen if you use the latest version? 7.2.1
JSON Schema
{ "properties": { "attr1": { "type": "string" }, "attr2": { "type": "boolean" }, "attr3": { "type": "int8" }, "attr4": { "type": "int8" }, "attr5": { "type": "uint8" }, "attr6": { "type": "int16" }, "attr7": { "type": "uint16" }, "attr8": { "type": "int32" }, "attr9": { "type": "uint32" } } }
Sample data
{ "attr1": "foo", "attr2": true, "attr3": 0, "attr4": 0, "attr5": 0, "attr6": 0, "attr7": 0, "attr8": 0, "attr9": 0 }
Your code
const ajvjtd = require('ajv/dist/jtd').default; console.log((new ajvjtd()).compile(schema)(data));
What results did you expect? It logs false but should be true, removing any property makes it work.
false
true
Are you going to resolve the issue? No
The text was updated successfully, but these errors were encountered:
3ae14a3
good catch - fixed - thank you
Sorry, something went wrong.
in 7.2.2
fix incorrect code for additional properties when there are "many" pr…
df3922f
…operties, closes ajv-validator#1501
No branches or pull requests
What version of Ajv are you using? Does the issue happen if you use the latest version?
7.2.1
JSON Schema
Sample data
Your code
What results did you expect?
It logs
false
but should betrue
, removing any property makes it work.Are you going to resolve the issue?
No
The text was updated successfully, but these errors were encountered: