-
Notifications
You must be signed in to change notification settings - Fork 6
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
Conversation
@@ -0,0 +1,15 @@ | |||
{ | |||
"$schema": "http://json-schema.org/draft-2020-12/schema#", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
idk if we conform to this now
https://github.com/TBD54566975/web5-spec/blob/main/test-vectors/did_dht/resolve.json
There was a problem hiding this comment.
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
spec/vc-11.json
Outdated
}, | ||
"required": ["id", "type", "statusPurpose", "statusListIndex", "statusListCredential"] | ||
}, | ||
"credentialSchema": { |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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" }, |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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": { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the doc here specifies it must be present https://github.com/TBD54566975/web5-spec/blob/main/spec/vc.md#verifiable-credential-data-model
There was a problem hiding this comment.
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
There was a problem hiding this 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 ! 🔥
There was a problem hiding this comment.
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
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes
fix #126