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

add json schemas for vc and did data models #127

Merged
merged 6 commits into from
Mar 26, 2024
Merged

add json schemas for vc and did data models #127

merged 6 commits into from
Mar 26, 2024

Conversation

decentralgabe
Copy link
Member

fix #126

@@ -0,0 +1,15 @@
{
"$schema": "http://json-schema.org/draft-2020-12/schema#",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah DHT is not supporting this since we don't have a dht resolver yet

decentralized-identity/did-dht#18

spec/vc-11.json Outdated
},
"required": ["id", "type", "statusPurpose", "statusListIndex", "statusListCredential"]
},
"credentialSchema": {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is the formatting off here?

Copy link
Contributor

@nitro-neal nitro-neal Mar 21, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we dont have credentialSchema in js currently, but its not required so a todo for now

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no problem - this should lead the impls

},
"issuer": {
"oneOf": [
{ "type": "string" },
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this will be our default when creating, but we will accept creds that are
{ id: 123, name: myname} right?

currently if we get a jwt, we use what is in the iss for buildling the vc and adding the issuer

so if we get

iss: abc

vcDataModel.issuer: { id: abc, name: myname}

we will blast it and make vcDataModel.issuer: abc

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

correct

"type": "string",
"format": "date-time"
},
"credentialSubject": {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

image

It may have an id, will we accept an external vc without and id?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we could certainly accept creds without em but we shouldn't produce creds without ids

Copy link
Contributor

@nitro-neal nitro-neal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome!! Need to iron this out and get this in all test vectors and validation impls asap ! 🔥

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this did-document.json?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes

@decentralgabe decentralgabe merged commit efa968d into main Mar 26, 2024
1 check passed
@decentralgabe decentralgabe deleted the issue-126 branch March 26, 2024 17:13
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

Successfully merging this pull request may close these issues.

Define JSON schemas for specified DID and VC data models
3 participants