JSON Schema provides functionality to mimic composition and inheritance - read here & here.
Currently we have relatively simplistic support for this by merging the properties values when the object has bothproperties and either oneOf or allOf.
I want to create this issue to track implementations of the various method described in the link above. I implemented a handling a part of this in #14, but I don't think this provides the exact semantics, as it uses an intersection type, but I think it should be using object type spread.
JSON Schema provides functionality to mimic composition and inheritance - read here & here.
Currently we have relatively simplistic support for this by merging the
properties
values when the object has bothproperties
and eitheroneOf
orallOf
.I want to create this issue to track implementations of the various method described in the link above. I implemented a handling a part of this in #14, but I don't think this provides the exact semantics, as it uses an intersection type, but I think it should be using object type spread.
Things we need to test:
allOf
with$ref
andproperties
oneOf
with$ref
andproperties
anyOf
with$ref
andproperties
oneOf
with nestedproperties
anyOf
with nestedproperties