From 212b609e261d9fc35f7be57e92cbbc3ecb9ed241 Mon Sep 17 00:00:00 2001 From: Sylvain Briat Date: Fri, 29 Mar 2024 15:09:32 +0100 Subject: [PATCH] add array min size check on schedule property --- .../ad/interface/grpc-controllers/dtos/match.request.dto.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/modules/ad/interface/grpc-controllers/dtos/match.request.dto.ts b/src/modules/ad/interface/grpc-controllers/dtos/match.request.dto.ts index 7833f54..2557f07 100644 --- a/src/modules/ad/interface/grpc-controllers/dtos/match.request.dto.ts +++ b/src/modules/ad/interface/grpc-controllers/dtos/match.request.dto.ts @@ -57,6 +57,7 @@ export class MatchRequestDto { @Type(() => ScheduleItemDto) @IsArray() + @ArrayMinSize(1) @IsOptional() @ValidateNested({ each: true }) schedule?: ScheduleItemDto[];