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]>
Signed-off-by: KulkarniShashank <[email protected]>
  • Loading branch information
ankita-p17 authored and KulkarniShashank committed Sep 11, 2024
1 parent 6b1b883 commit ac9ae0f
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 ac9ae0f

Please sign in to comment.