-
Notifications
You must be signed in to change notification settings - Fork 51
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
VC 2.0 Add validUntil & validFrom / make credentialStatus.id checks optional #168
Conversation
dbaf8c8
to
fdc98f6
Compare
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.
LGTM, just some minor comments. TY!
Edit: In the PR title and the description it says validBefore
, but maybe you intended to refer to validAfter
instead?
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## update-vc-2.0 #168 +/- ##
================================================
Coverage ? 90.54%
================================================
Files ? 5
Lines ? 1058
Branches ? 0
================================================
Hits ? 958
Misses ? 100
Partials ? 0 Continue to review full report in Codecov by Sentry.
|
test/10-verify.spec.js
Outdated
error = e; | ||
} | ||
should.exist(error, | ||
'Should throw error when "evidence" is not a URI'); |
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.
What's "evidence"
here? Looks like a copy/paste error.
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 actually was assuming as evidence
is moving out the spec that credentialStatus
was now a piece of evidence? @davidlehn is this a mistake or should the credentialStatus.id
not being a URI be taken as an evidence error?
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.
Looks like typo. Fixed. Do these id changes need a changelog entry? Not sure what's going in this for this PR.
@aljones15 it looks like this PR has moved (or is moving) well beyond I'm also a bit concerned about us ending up with one massive PR to review. Can we do more, smaller PRs against a non- |
I will refrain from merging any further PRs into this PR, but as this PR and the other PR: #170 had both been approved it seemed safe to merge the two. As for this PR moving beyond |
@@ -808,7 +808,7 @@ for(const [version, mockCredential] of versionedCredentials) { | |||
.contain('"issuer" must be a URI'); | |||
}); | |||
|
|||
it('should reject credentialStatus that is not a URI', () => { | |||
it('should reject credentialStatus id that is not a URI', () => { |
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 spec says URL actually. Also, only one id is allowed.
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.
Can you match the spec text where possible? Makes it much easier to match tests to the spec. Thanks!
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 don't know what needs changing here. Please do whatever is needed. If only one status is allowed, the check code should check that, and tests should be written to fail on multiple statuses.
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.
@BigBlueHat the tests inside of the libraries usually don't match the spec text so what you're asking might be better as a separate issue. If you want it done here I could get a start on it in this pr.
Mostly, my aim is to keep topics clear...and now it's pretty muddied what's going on. Also, as @JSAssassin mentioned earlier, the fields are Thanks! |
000dfb7
to
0bb92ad
Compare
9ff44fe
to
4f59e13
Compare
Co-authored-by: Tashi D. Gyeltshen <[email protected]>
Co-authored-by: Tashi D. Gyeltshen <[email protected]>
…stamp. Co-authored-by: Tashi D. Gyeltshen <[email protected]>
- Make "id" optional. - If "id" present, check it's a URL. - Add tests.
Co-authored-by: BigBlueHat <[email protected]>
Co-authored-by: BigBlueHat <[email protected]>
0bb92ad
to
be2533e
Compare
@BigBlueHat @davidlehn please double check this as this is your last chance before merge into |
Features:
credentialStatus
check changes from herecredentialStatus.id
optionalcredentialStatus.id
is present it must be a URL.