Skip to content
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

banUnknownProperties may not correctly handle the anyOf keyword #1

Open
pbatey opened this issue Jan 29, 2021 · 0 comments
Open

banUnknownProperties may not correctly handle the anyOf keyword #1

pbatey opened this issue Jan 29, 2021 · 0 comments

Comments

@pbatey
Copy link
Owner

pbatey commented Jan 29, 2021

Based on the discussion about banUnknownProperties not being supported by ajv and the fact that one of the reasons they don't support it is because of the anyOf keyword...

banUnknownProperties is not likely handling keywords like anyOf correctly. It adds additionalProperties: false to anyOf children -- not sure what it would do -- I haven't run into a use-case where I needed to use anyOf.

BTW: banUnknownProperties isn't doing anything with the not keyword -- which I think is correct, at least for my use-case where I want to check for misspellings in a JSON object.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant