diff --git a/packages/credential-w3c/src/action-handler.ts b/packages/credential-w3c/src/action-handler.ts index 42a9f24a4..05dd5fc05 100644 --- a/packages/credential-w3c/src/action-handler.ts +++ b/packages/credential-w3c/src/action-handler.ts @@ -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 = {