-
-
Notifications
You must be signed in to change notification settings - Fork 114
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
Discrepancy in validation with JSON Schema draft 2020-12 #497
Comments
Thanks for the report! However, I don't think this can be fixed by Taplo. Taplo is using |
Ah okay sorry. I mistakenly assumed Taplo had its own validator! I'll check those issues out. |
It looks like |
The fix is simple (see #498). However, I have no idea of the implications and why this is not automatic. Maybe it's because the |
Huh alright. Thanks for taking a look. |
Exactly this. As the main author of jsonschema-rs states here:
|
How about switching from jsonschema-rs to boon? |
Folks, FYI, in UPDATE 2024-10-24: |
With this schema, which defines an object with a property
test
that contains an array of objects that can have certain properties, I am having issues where Taplo should be invalidating a test case but it isn't. This is probably due to something with the new property introduced in this draft,unevaluatedProperties
(see this discussion about it).These tests should be valid, with any combination of
foo
andbaz
together or separate:And these should be invalid, with an additional property not in the definition:
You can test these on https://json-everything.net/json-schema/ for JSON and with
taplo
obviously for TOML. My issue is that Taplo isn't invalidating the last example with the additional propertyotherProperty
when it should be.The text was updated successfully, but these errors were encountered: