Skip to content

Commit

Permalink
Merge pull request #552 from credebl/fix/shared-wallet-payload
Browse files Browse the repository at this point in the history
fix: solved issue for the ledgerId restriction as a string of array
  • Loading branch information
nishad-ayanworks authored Feb 28, 2024
2 parents a0a6c8e + d64d01d commit bf5a752
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion apps/api-gateway/src/agent-service/dto/create-tenant.dto.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,13 @@ export class CreateTenantDto {
})
seed: string;

@ApiProperty({ example: [1] })
@ApiProperty({ example: ["b942473d-6fdd-4a38-b76e-a3314fca66b6"] })
@ApiPropertyOptional()
@IsOptional()
@IsArray({ message: 'ledgerId must be an array' })
@IsNotEmpty({ message: 'please provide valid ledgerId' })
@IsString({ each: true, message: 'Each ledgerId must be a string' })
@MaxLength(36, { each: true, message: 'ledgerId must be at most 36 characters.' })
ledgerId?: string[];

@ApiProperty({ example: 'XzFjo1RTZ2h9UVFCnPUyaQ' })
Expand Down

0 comments on commit bf5a752

Please sign in to comment.