From ecdc52092ede4f4ca41b5b85fd7e41cbbd5b4fcf Mon Sep 17 00:00:00 2001 From: Ankita Patidar <35130088+ankita-p17@users.noreply.github.com> Date: Wed, 24 Apr 2024 15:02:09 +0530 Subject: [PATCH] add name attribute in w3c presentationDefinition payload (#678) Signed-off-by: Ankita Patidar Signed-off-by: KulkarniShashank --- apps/api-gateway/src/verification/dto/request-proof.dto.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/apps/api-gateway/src/verification/dto/request-proof.dto.ts b/apps/api-gateway/src/verification/dto/request-proof.dto.ts index 3479b8e36..22b4e57bb 100644 --- a/apps/api-gateway/src/verification/dto/request-proof.dto.ts +++ b/apps/api-gateway/src/verification/dto/request-proof.dto.ts @@ -220,13 +220,17 @@ export class ProofRequestPresentationDefinition { @IsString() @IsNotEmpty({ message: 'id is required.' }) id: string; + + @IsString() + @IsOptional() + name: string; + @ApiProperty({type: () => [InputDescriptors]}) @IsNotEmpty({ message: 'inputDescriptors is required.' }) @IsArray({ message: 'inputDescriptors must be an array' }) @IsObject({ each: true }) @Type(() => InputDescriptors) @ValidateNested() - // eslint-disable-next-line camelcase input_descriptors:InputDescriptors[]; }