diff --git a/apps/vc-api/src/api/credentials/mapper/credentials.controller.mapper.ts b/apps/vc-api/src/api/credentials/mapper/credentials.controller.mapper.ts index 32a245a..c20e6db 100644 --- a/apps/vc-api/src/api/credentials/mapper/credentials.controller.mapper.ts +++ b/apps/vc-api/src/api/credentials/mapper/credentials.controller.mapper.ts @@ -18,7 +18,7 @@ export class CredentialsControllerMapper implements IcredentialsControllerMapper ): AuthCallbackApiResponse { return { dataKey: credentialCallbackResponse.dataKey, - verifiedCredential: { + verifiableCredential: { type: credentialCallbackResponse.verifiableCredential.type, '@context': credentialCallbackResponse.verifiableCredential['@context'], credentialSubject: credentialCallbackResponse.verifiableCredential.credentialSubject, diff --git a/apps/vc-api/src/api/credentials/responses/credentials.callback.response.api.ts b/apps/vc-api/src/api/credentials/responses/credentials.callback.response.api.ts index 15e5807..dad5e3e 100644 --- a/apps/vc-api/src/api/credentials/responses/credentials.callback.response.api.ts +++ b/apps/vc-api/src/api/credentials/responses/credentials.callback.response.api.ts @@ -149,7 +149,7 @@ export class EthereumEip712Signature2021ApiResponse extends EthereumEip712Signature2021ApiResponse { +export class VerifiableEthereumEip712Signature2021ApiResponse extends EthereumEip712Signature2021ApiResponse { @ApiResponseProperty({ type: ProofApiResponse }) @ValidateNested() @Type(() => ProofApiResponse) @@ -163,15 +163,15 @@ export class VerifiedEthereumEip712Signature2021ApiResponse VerifiedEthereumEip712Signature2021ApiResponse) - verifiedCredential: VerifiedEthereumEip712Signature2021ApiResponse; + @Type(() => VerifiableEthereumEip712Signature2021ApiResponse) + verifiableCredential: VerifiableEthereumEip712Signature2021ApiResponse; }