-
Notifications
You must be signed in to change notification settings - Fork 35
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
Need ability for inheritance on json schema #162
Comments
for example, in terms of the ag use case, we cannot type check that ppq203 is a subclass of aginspection in the repo |
Recommend to strive for a composable structure that is like:
example of an approach is:
|
note: hardening any type enforcement should likely come into play once it is known that the object fully represents the contents of the type - e.g. paper based form that does not change or changes only on a long time scale, and is being digitized (e.g. digital form of a regulatory document) |
JSON Schema that use inheritance do not generate JSON-LD context properly. Would be good to get a set of examples we wished were possible on the ticket. |
We still need examples. |
Per Call: This is resolved via #220 |
JSON Schema does not generate JSON-LD context of its own. So can you please illustrate the problem?
Can you please explain how this is resolved by pointing to schemas that use inheritance? I'm asking in relation to 2 of the issues I posted:
|
We do this in this repo, its part of our build step today: |
In an ideally world we could use
allof
or similar in JSON Schema to represent a class - subclass relationship - this type of thing is well handled in JSON-LD, less so in JSON Schema. We should pick a best practice on this, and document it, etc.The text was updated successfully, but these errors were encountered: