Repository navigation
VC 2.0 Add validUntil & validFrom / make credentialStatus.id checks optional - #168
Conversation
dbaf8c8 to
fdc98f6
Compare
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.
|
| error = e; | ||
| } | ||
| should.exist(error, | ||
| 'Should throw error when "evidence" is not a URI'); |
There was a problem hiding this comment.
What's "evidence" here? Looks like a copy/paste error.
There was a problem hiding this comment.
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.
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 |
| }); | ||
|
|
||
| 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.
the spec says URL actually. Also, only one id is allowed.
There was a problem hiding this comment.
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.
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.
@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 <38434620+JSAssassin@users.noreply.github.com>
Co-authored-by: Tashi D. Gyeltshen <38434620+JSAssassin@users.noreply.github.com>
…stamp. Co-authored-by: Tashi D. Gyeltshen <38434620+JSAssassin@users.noreply.github.com>
- Make "id" optional. - If "id" present, check it's a URL. - Add tests.
Co-authored-by: BigBlueHat <byoung@bigbluehat.com>
Co-authored-by: BigBlueHat <byoung@bigbluehat.com>
0bb92ad to
be2533e
Compare
|
@BigBlueHat @davidlehn please double check this as this is your last chance before merge into |
Features:
credentialStatuscheck changes from herecredentialStatus.idoptionalcredentialStatus.idis present it must be a URL.