Skip to content

Comments

fix: Fix for duplicate credential types#37

Merged
macterra merged 2 commits intomainfrom
36-avoid-duplicating-verifiablecredential
Jan 30, 2026
Merged

fix: Fix for duplicate credential types#37
macterra merged 2 commits intomainfrom
36-avoid-duplicating-verifiablecredential

Conversation

@macterra
Copy link
Collaborator

No description provided.

@macterra macterra linked an issue Jan 29, 2026 that may be closed by this pull request
@coveralls
Copy link

coveralls commented Jan 29, 2026

Pull Request Test Coverage Report for Build 21498814142

Details

  • 2 of 2 (100.0%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.001%) to 95.584%

Totals Coverage Status
Change from base Build 21493742461: 0.001%
Covered Lines: 3303
Relevant Lines: 3393

💛 - Coveralls

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR fixes a bug where duplicate credential types could be added to a verifiable credential when schema's $credentialTypes property contains types that already exist in the credential's type array.

Changes:

  • Added duplicate filtering logic to prevent the same credential type from appearing multiple times in vc.type array
  • Updated comment to clarify that the code now avoids duplicates

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@macterra macterra merged commit 9613c46 into main Jan 30, 2026
13 checks passed
@macterra macterra deleted the 36-avoid-duplicating-verifiablecredential branch January 30, 2026 01:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Avoid duplicating VerifiableCredential in type array

2 participants