diff --git a/src/settlements/dto/create-venue.dto.ts b/src/settlements/dto/create-venue.dto.ts index 875e9b3d..fb9a5168 100644 --- a/src/settlements/dto/create-venue.dto.ts +++ b/src/settlements/dto/create-venue.dto.ts @@ -1,8 +1,7 @@ /* istanbul ignore file */ - import { ApiProperty } from '@nestjs/swagger'; import { VenueType } from '@polymeshassociation/polymesh-sdk/types'; -import { IsEnum, IsString } from 'class-validator'; +import { IsArray, IsEnum, IsOptional, IsString } from 'class-validator'; import { TransactionBaseDto } from '~/common/dto/transaction-base-dto'; @@ -29,6 +28,8 @@ export class CreateVenueDto extends TransactionBaseDto { isArray: true, example: ['5GwwYnwCYcJ1Rkop35y7SDHAzbxrCkNUDD4YuCUJRPPXbvyV'], }) + @IsOptional() + @IsArray() @IsString({ each: true }) readonly signers?: string[]; }