Skip to content

Why do we need two schema system/languages? #16

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

Closed
OR13 opened this issue Dec 12, 2019 · 5 comments
Closed

Why do we need two schema system/languages? #16

OR13 opened this issue Dec 12, 2019 · 5 comments

Comments

@OR13
Copy link
Collaborator

OR13 commented Dec 12, 2019

Since the linked data context for the vc and the json schema for the vc serve similar purposes, how should we describe the decision to support both?

Which is more authoritative?

May be worth investigating some of the type transformation that JSON Schema supports that JSON-LD does not.

@decentralgabe
Copy link
Collaborator

By the language in the spec the context in the VC does not necessarily provide the information about the credentialSubject.

Similarly, the context in the schema may not include much information at all (if they are there simply to comply with the spec for the sake of interop with those who choose to use LD).

In the perfect LD-everywhere usage of the ecosystem there is overlap. In the other extreme, both properties could serve a purpose, or none at all.

@VladimirAlexiev
Copy link

JSON-LD is not a schema system/language, whereas JSON Schema does not provide global meaning to data.
So yes, both are useful. See #88 for details

@TallTed
Copy link
Member

TallTed commented Jan 25, 2022

Please retitle to "Why do we need two schema systems?" so "schema" doesn't read as a verb acting on "systems".

@OR13 OR13 changed the title Why do we need to schema systems? Why do we need two schema system/languages? Jan 25, 2022
@decentralgabe decentralgabe self-assigned this Nov 9, 2022
@decentralgabe
Copy link
Collaborator

there is a section on using both LD and JSON Schema together, it could use some more work so I will keep this open. looking for volunteers 😄

@decentralgabe decentralgabe removed their assignment Nov 9, 2022
@decentralgabe
Copy link
Collaborator

Closing to be handled in #122

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants