Skip to content

Commit

Permalink
add name attribute in w3c presentationDefinition payload (#678)
Browse files Browse the repository at this point in the history
Signed-off-by: Ankita Patidar <[email protected]>
  • Loading branch information
ankita-p17 authored and KulkarniShashank committed Sep 11, 2024
1 parent a1c1cbd commit f14744d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion apps/api-gateway/src/verification/dto/request-proof.dto.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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[];
}
Expand Down

0 comments on commit f14744d

Please sign in to comment.