Skip to content

Handling of false in then or else #767

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

Open
Zash opened this issue Mar 30, 2025 · 0 comments
Open

Handling of false in then or else #767

Zash opened this issue Mar 30, 2025 · 0 comments

Comments

@Zash
Copy link

Zash commented Mar 30, 2025

I noticed that our JSON Schema implementation is doing a simple check for the not, then and else keywords, meaning a schema like {"not":false} would be treated exactly like {}.
I imagine this should matter in some conditions but I can't quite get my head around the double negatives needed.
This does not seem to have been caught by the draft2020-12 tests as of 7950d9e and I see no changes since then to not.json or `if-then-else.json

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