Skip to content

Commit

Permalink
Merge pull request #48 from JustaName-id/staging
Browse files Browse the repository at this point in the history
Staging
  • Loading branch information
Ghadi8 authored Oct 16, 2024
2 parents c474f55 + b514767 commit e8ced02
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ export class EthereumEip712Signature2021ApiResponse<T extends CredentialSubjectV
}

@ApiExtraModels(ProofApiResponse, IssuerApiResponse)
export class VerifiedEthereumEip712Signature2021ApiResponse<T extends CredentialSubjectValueApiResponse = {}> extends EthereumEip712Signature2021ApiResponse<T> {
export class VerifiableEthereumEip712Signature2021ApiResponse<T extends CredentialSubjectValueApiResponse = {}> extends EthereumEip712Signature2021ApiResponse<T> {
@ApiResponseProperty({ type: ProofApiResponse })
@ValidateNested()
@Type(() => ProofApiResponse)
Expand All @@ -163,15 +163,15 @@ export class VerifiedEthereumEip712Signature2021ApiResponse<T extends Credential
}


@ApiExtraModels(VerifiedEthereumEip712Signature2021ApiResponse)
@ApiExtraModels(VerifiableEthereumEip712Signature2021ApiResponse)
export class AuthCallbackApiResponse {

@ApiResponseProperty()
@IsString()
dataKey: string;

@ApiResponseProperty({ type: VerifiedEthereumEip712Signature2021ApiResponse })
@ApiResponseProperty({ type: VerifiableEthereumEip712Signature2021ApiResponse })
@ValidateNested()
@Type(() => VerifiedEthereumEip712Signature2021ApiResponse)
verifiedCredential: VerifiedEthereumEip712Signature2021ApiResponse;
@Type(() => VerifiableEthereumEip712Signature2021ApiResponse)
verifiableCredential: VerifiableEthereumEip712Signature2021ApiResponse;
}

0 comments on commit e8ced02

Please sign in to comment.