You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In cases of interface inheritance, the generated json schema joins the two definitions with allOf.
However, when the definitions have "additionalProperties": false the generated schema is incorrect.
A possible workaround, is having "additionalProperties": true for both the extended and the extending interface (but this would allow also for other properties).
Hi @marcoqu. The solution provided by #35 should partly fix this bug. The only problem left is additionalProperties: false overriding for named definitions:
Hi @mrix, Thanks about this!
I see that in the huge Vega Lite pull request they also seem to have approached the same issue.
Is that pull request (or elements of it) going to get merged or have they become two different, incompatible projects?
In cases of interface inheritance, the generated json schema joins the two definitions with
allOf
.However, when the definitions have
"additionalProperties": false
the generated schema is incorrect.A possible workaround, is having
"additionalProperties": true
for both the extended and the extending interface (but this would allow also for other properties).Test case:
Error:
More about the issue:
json-schema-org/json-schema-spec#348
https://spacetelescope.github.io/understanding-json-schema/reference/combining.html
The text was updated successfully, but these errors were encountered: