Skip to content

Commit

Permalink
fix(credential-w3c): manually merging schemas
Browse files Browse the repository at this point in the history
  • Loading branch information
simonas-notcat committed Sep 23, 2022
1 parent 3dac75f commit 94f9602
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion packages/credential-w3c/src/action-handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,18 @@ const debug = Debug('veramo:w3c:action-handler')
*/
export class CredentialPlugin implements IAgentPlugin {
readonly methods: ICredentialPlugin
readonly schema = schema.ICredentialPlugin
readonly schema = {
components: {
schemas: {
...schema.ICredentialIssuer.components.schemas,
...schema.ICredentialVerifier.components.schemas,
},
methods: {
...schema.ICredentialIssuer.components.methods,
...schema.ICredentialVerifier.components.methods
}
}
}

constructor() {
this.methods = {
Expand Down

0 comments on commit 94f9602

Please sign in to comment.