Skip to content
This repository has been archived by the owner on Mar 27, 2024. It is now read-only.

refactor: disabled JSON-LD checks for VPs with JWT VCs by default #3540

Merged
merged 1 commit into from
Feb 28, 2023

Conversation

birtony
Copy link
Contributor

@birtony birtony commented Feb 28, 2023

Signed-off-by: Anton Biriukov anton.biriukov@avast.com

Signed-off-by: Anton Biriukov <anton.biriukov@avast.com>
@codecov
Copy link

codecov bot commented Feb 28, 2023

Codecov Report

Merging #3540 (56e03d2) into main (02f8084) will increase coverage by 0.00%.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##             main    #3540   +/-   ##
=======================================
  Coverage   87.72%   87.72%           
=======================================
  Files         351      351           
  Lines       48416    48423    +7     
=======================================
+ Hits        42471    42481   +10     
+ Misses       4404     4402    -2     
+ Partials     1541     1540    -1     
Impacted Files Coverage Δ
pkg/doc/verifiable/presentation.go 85.38% <100.00%> (+1.33%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

Copy link
Contributor

@DRK3 DRK3 left a comment

Choose a reason for hiding this comment

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

Looks good to me, if it looks good to @Moopli then I think it can be merged

@@ -402,6 +403,14 @@ func WithPresJSONLDDocumentLoader(documentLoader jsonld.DocumentLoader) Presenta
}
}

// WithDisabledJSONLDChecks disables JSON-LD checks for VP parsing.
// By default, JSON-LD checks are enabled.
func WithDisabledJSONLDChecks() PresentationOpt {
Copy link
Contributor

Choose a reason for hiding this comment

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

Please specify in comments atleast, what you mean by JSON LD checks, is it JSON LD Schema Validation?

@sudeshrshetty sudeshrshetty merged commit bd8e271 into hyperledger-archives:main Feb 28, 2023
@birtony birtony deleted the issue3539 branch February 28, 2023 20:20
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants