Skip to content

feat: Improve DTG credential support#48

Merged
macterra merged 6 commits intomainfrom
47-transition-schemas
Feb 4, 2026
Merged

feat: Improve DTG credential support#48
macterra merged 6 commits intomainfrom
47-transition-schemas

Conversation

@macterra
Copy link
Collaborator

@macterra macterra commented Feb 4, 2026

No description provided.

@macterra macterra linked an issue Feb 4, 2026 that may be closed by this pull request
@macterra macterra requested a review from Copilot February 4, 2026 16:28
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 improves DTG credential support by renaming the schema property from $credentialTypes to $credentialType, adding support for custom credential contexts via $credentialContext, changing credential type behavior from merge to override, and introducing a new updateDID API method.

Changes:

  • Renamed $credentialTypes to $credentialType for schema definitions with override semantics instead of merge
  • Added $credentialContext support to allow schemas to specify custom credential contexts
  • Implemented updateDID method across the stack (core, client, API, and tests)

Reviewed changes

Copilot reviewed 8 out of 8 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
tests/keymaster/credential.test.ts Updated tests to reflect new property name and override behavior for credential types
tests/keymaster/client.test.ts Added comprehensive tests for the new updateDID method including error handling
services/keymaster/server/src/keymaster-api.ts Added PUT endpoint for updating DID documents with swagger documentation
services/keymaster/client/src/KeymasterUI.js Updated to use $credentialType property for schema name extraction
services/gatekeeper/client/src/KeymasterUI.js Updated to use $credentialType property for schema name extraction
packages/keymaster/src/types.ts Added updateDID method to KeymasterInterface
packages/keymaster/src/keymaster.ts Implemented credential context override, credential type override, and improved empty claims handling
packages/keymaster/src/keymaster-client.ts Added client method for updateDID with proper error handling

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

@macterra macterra force-pushed the 47-transition-schemas branch from e3562e7 to 6f0f33b Compare February 4, 2026 17:09
@coveralls
Copy link

coveralls commented Feb 4, 2026

Pull Request Test Coverage Report for Build 21681256633

Details

  • 11 of 11 (100.0%) changed or added relevant lines in 2 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.006%) to 95.589%

Totals Coverage Status
Change from base Build 21602227237: 0.006%
Covered Lines: 3307
Relevant Lines: 3397

💛 - Coveralls

macterra and others added 2 commits February 4, 2026 12:18
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@macterra macterra merged commit fb7e245 into main Feb 4, 2026
13 checks passed
@macterra macterra deleted the 47-transition-schemas branch February 4, 2026 18:13
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.

Transition schemas to credential specs

2 participants