set schedule to optional in match request

This commit is contained in:
Sylvain Briat
2024-03-28 17:13:57 +01:00
committed by sbriat
parent 2ce2a46c95
commit 4fd2950027

View File

@@ -57,9 +57,9 @@ export class MatchRequestDto {
@Type(() => ScheduleItemDto) @Type(() => ScheduleItemDto)
@IsArray() @IsArray()
@ArrayMinSize(1) @IsOptional()
@ValidateNested({ each: true }) @ValidateNested({ each: true })
schedule: ScheduleItemDto[]; schedule?: ScheduleItemDto[];
@IsOptional() @IsOptional()
@IsInt() @IsInt()