Skip to content
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

JSON Schema "inheritance" #22

Open
5 tasks
wmonk opened this issue Mar 27, 2018 · 0 comments
Open
5 tasks

JSON Schema "inheritance" #22

wmonk opened this issue Mar 27, 2018 · 0 comments

Comments

@wmonk
Copy link
Contributor

wmonk commented Mar 27, 2018

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 both properties 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.

Things we need to test:

  • allOf with $ref and properties
  • oneOf with $ref and properties
  • anyOf with $ref and properties
  • oneOf with nested properties
  • anyOf with nested properties
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