-
-
Notifications
You must be signed in to change notification settings - Fork 871
New issue
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
Optionally warn on additional properties/items (regardless of schema) #501
Comments
see #379 |
I'm having trouble with that approach as a simple valid schema (supplied as data) gets stripped to nothing when validated using If this is due to problems with |
Doing it with the schema complicates it a bit, but can be done too: https://runkit.com/esp/59268e4e237c55001294fda2 #379 also suggests a custom keyword |
Thanks! It looks like |
What version of Ajv you are you using? 5.1.3
What problem do you want to solve? Ensure instance does not have unintentionally misplaced properties (regardless of whether
additionalProperties: false
(oradditionalItems: false
) is set on the schema since one may not wish to impose this on all consumers of the schema).What do you think is the correct solution to problem? Allow config to
Ajv
which supports reporting all unknown properties or items (including if applying to schema files). The reporting could be ignored ifadditionalProperties
(oradditionalItems
) was set within the schema.Will you be able to implement it? I don't think so--hands way too full atm.
The text was updated successfully, but these errors were encountered: