add array min size check on schedule property
This commit is contained in:
parent
bd6fc1576b
commit
212b609e26
|
@ -57,6 +57,7 @@ export class MatchRequestDto {
|
|||
|
||||
@Type(() => ScheduleItemDto)
|
||||
@IsArray()
|
||||
@ArrayMinSize(1)
|
||||
@IsOptional()
|
||||
@ValidateNested({ each: true })
|
||||
schedule?: ScheduleItemDto[];
|
||||
|
|
Loading…
Reference in New Issue