-
Notifications
You must be signed in to change notification settings - Fork 20
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
Rework the data model to support statusPurpose
field.
#24
Changes from 3 commits
df4b864
82c5c53
fb40f90
01a681d
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -2,7 +2,7 @@ | |||||
"@context": { | ||||||
"@protected": true, | ||||||
|
||||||
"StatusList2021Credential": { | ||||||
"StatusListCredential2021": { | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This shouldn't be changed -- this is a type of
Suggested change
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes, considered that. It's strange... can't think of anywhere else that we do this (date stamp in middle of type name). It creates this new rule that people have to remember when using date stamped values... and it's not clear when to use one vs. the other. I'd rather we stick with one rule (dates go at the end) rather than (dates sometimes go in the middle -- here's yet another complex VC thing you have to remember to determine when to do what). There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The other rule we have always had is that There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Hmm, I don't think that there's a "new rule" here with date stamps. I think these have already been the rules:
I don't think we're date-stamping the credential, we're date-stamping the status list. Then, as part of how this system works, we also need a credential to put the status list in. That's what the credential is ... a credential that holds a I think it's better that the rules be that the date follows the thing it applies to -- which is the status list definition. The fact that there's a credential to go along with a There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. One thing I considered was just dropping the 2021 and just making it "StatusListCredential". Thoughts? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Interesting. I get you. Seems like There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
I count that as 2 for, 1 undecided... would be good to get some more opinions on this... /cc @OR13 @mprorock @mkhraisha @tplooker @mavarley @TallTed @peacekeeper There was a problem hiding this comment. Choose a reason for hiding this commentThe 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 commentThe reason will be displayed to describe this comment to others. Learn more. Just so there is more consensus, There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Fixed in 01a681d. |
||||||
"@id": | ||||||
"https://w3id.org/vc/status-list#StatusList2021Credential", | ||||||
"@context": { | ||||||
|
@@ -16,54 +16,39 @@ | |||||
} | ||||||
}, | ||||||
|
||||||
"RevocationList2021": { | ||||||
"StatusList2021": { | ||||||
"@id": | ||||||
"https://w3id.org/vc/status-list#RevocationList2021", | ||||||
"https://w3id.org/vc/status-list#StatusList2021", | ||||||
"@context": { | ||||||
"@protected": true, | ||||||
|
||||||
"id": "@id", | ||||||
"type": "@type", | ||||||
|
||||||
"statusPurpose": | ||||||
"https://w3id.org/vc/status-list#statusPurpose", | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm not sure if this is better than There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm concerned about adding too many There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yeah, I think this is probably a good approach. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. +100 @msporny There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Also agreeing here: |
||||||
"encodedList": "https://w3id.org/vc/status-list#encodedList" | ||||||
} | ||||||
}, | ||||||
|
||||||
"RevocationList2021Status": { | ||||||
"StatusListEntry2021": { | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It seems like this should be There was a problem hiding this comment. Choose a reason for hiding this commentThe 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 commentThe reason will be displayed to describe this comment to others. Learn more. Would be good to get some more opinions on this as well. /cc @OR13 @mprorock @mkhraisha @tplooker @mavarley @TallTed @peacekeeper There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Fixed in 01a681d. |
||||||
"@id": | ||||||
"https://w3id.org/vc/status-list#RevocationList2021Status", | ||||||
"https://w3id.org/vc/status-list#StatusListEntry2021", | ||||||
"@context": { | ||||||
"@protected": true, | ||||||
|
||||||
"id": "@id", | ||||||
"type": "@type", | ||||||
|
||||||
"statusListCredential": { | ||||||
"@id": | ||||||
"https://w3id.org/vc/status-list#statusListCredential", | ||||||
"@type": "@id" | ||||||
}, | ||||||
"statusPurpose": | ||||||
"https://w3id.org/vc/status-list#statusPurpose", | ||||||
"statusListIndex": | ||||||
"https://w3id.org/vc/status-list#statusListIndex" | ||||||
} | ||||||
}, | ||||||
|
||||||
"SuspensionList2021Status": { | ||||||
"@id": | ||||||
"https://w3id.org/vc/status-list#SuspensionList2021Status", | ||||||
"@context": { | ||||||
"@protected": true, | ||||||
|
||||||
"id": "@id", | ||||||
"type": "@type", | ||||||
|
||||||
"https://w3id.org/vc/status-list#statusListIndex", | ||||||
"statusListCredential": { | ||||||
"@id": | ||||||
"https://w3id.org/vc/status-list#statusListCredential", | ||||||
"@type": "@id" | ||||||
}, | ||||||
"statusListIndex": | ||||||
"https://w3id.org/vc/status-list#statusListIndex" | ||||||
} | ||||||
} | ||||||
} | ||||||
} | ||||||
|
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.
I wonder if just include an
@vocab
would be a better move 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.
Why do you think that, @OR13? If we do that, then everything under StatusList2021 becomes a part of the status list vocabulary. Seems like a dangerous thing to just blanket map any term to the status list vocabulary (this is why
@vocab
, in general, is a bad idea and shouldn't be used).