TBD54566975 / known-customer-credential

3 stars 1 forks source link

Create kcc-schema.json #24

Closed nitro-neal closed 2 months ago

nitro-neal commented 2 months ago

Adding schema that complies to this chart:

image
nitro-neal commented 2 months ago

linked here - https://github.com/TBD54566975/known-customer-credential/issues/21

kirahsapong commented 2 months ago

@decentralgabe in practice when credentialSchema.type === JsonSchema then does the value of credentialSchema.id need to point to the URL of an actual JSON schema file like https://intrewebs.com/person.json?

decentralgabe commented 2 months ago

@decentralgabe in practice when credentialSchema.type === JsonSchema then does the value of credentialSchema.id need to point to the URL of an actual JSON schema file like https://intrewebs.com/person.json?

yes the spec here goes into it https://w3c.github.io/vc-json-schema/

kirahsapong commented 2 months ago

yes the spec here goes into it https://w3c.github.io/vc-json-schema/

thanks for confirming!

@nitro-neal in our tests do you think we should demonstrate legit usage by pointing to a (pretend) JSON schema file instead of a (pretend) schema.org term?

nburgess48 commented 2 months ago

LGTM! (no issue with snakeCase here)

nitro-neal commented 2 months ago

@kirahsapong will update the tests to point to this file now basically and be for real for real https://raw.githubusercontent.com/TBD54566975/known-customer-credential/e4affed4b0017fab260b1995d54604a6cbfe6fe9/kcc-schema.json

(hash will be removed when I merge)