-
Notifications
You must be signed in to change notification settings - Fork 12
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
Parent definitions seem to override children in unexpected ways #161
Comments
According to the spec: https://json-schema.org/draft/2020-12/json-schema-core.html#section-11.3, it appears to be dependent only on adjacent in-place applicators (i.e. effectively anything nested inside the schema that contains I'll try to clarify this just in case though. Upd: see testsuite refs in the next comment. |
Upstream testsuite references: |
Perhaps the proper solution for this would be to lift That would require a non-trivial change in the tracing logic though. |
Draft in #162 |
Yes, that would be a good solution. Thanks for the quick response, I barely had time to make tea 🚤 |
Implemented in |
Here's a parser and schema that refers to base schema. The base schema has a single property
version
and the childtype
with theallOf
requirement ofbase
.I was expecting the following to be valid.
Instead, the parser errors with
It is valid when I modify as follows
Is this the expected behaviour?
The text was updated successfully, but these errors were encountered: