mirror of
https://gitlab.com/mobicoop/v3/service/matcher.git
synced 2026-01-30 08:40:46 +00:00
add array min size check on schedule property
This commit is contained in:
@@ -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[];
|
||||||
|
|||||||
Reference in New Issue
Block a user