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

fix: presentation with empty credential fix #3319

Merged

Conversation

baha-ai
Copy link
Contributor

@baha-ai baha-ai commented Aug 8, 2022

This change fixes how a presentation is marshalled with empty credential field which wrongly outputs:
'"verifiableCredential": null'

This change skips this field if the presentation Credential field is empty

Signed-off-by: Baha Shaaban baha.shaaban@securekey.com

This change fixes how a presentation is marshalled with empty credential field which wrongly outputs:
'"verifiableCredential": null'

This change skips this field if the presentation Credential field is empty

Signed-off-by: Baha Shaaban <baha.shaaban@securekey.com>
@baha-ai baha-ai force-pushed the presentation_cred_nil_fix branch from fcd1c62 to d84c044 Compare August 8, 2022 19:16
@codecov
Copy link

codecov bot commented Aug 8, 2022

Codecov Report

Merging #3319 (d84c044) into main (1d1ff78) will increase coverage by 0.00%.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##             main    #3319   +/-   ##
=======================================
  Coverage   88.05%   88.05%           
=======================================
  Files         318      318           
  Lines       43152    43156    +4     
=======================================
+ Hits        37998    38002    +4     
  Misses       3799     3799           
  Partials     1355     1355           
Impacted Files Coverage Δ
pkg/doc/verifiable/presentation.go 86.98% <100.00%> (+0.18%) ⬆️

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

@fqutishat fqutishat merged commit 1daefcc into hyperledger-archives:main Aug 8, 2022
@baha-ai baha-ai deleted the presentation_cred_nil_fix branch August 8, 2022 20:17
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.

2 participants