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)
|
@Type(() => ScheduleItemDto)
|
||||||
@IsArray()
|
@IsArray()
|
||||||
|
@ArrayMinSize(1)
|
||||||
@IsOptional()
|
@IsOptional()
|
||||||
@ValidateNested({ each: true })
|
@ValidateNested({ each: true })
|
||||||
schedule?: ScheduleItemDto[];
|
schedule?: ScheduleItemDto[];
|
||||||
|
|
Loading…
Reference in New Issue