mirror of
https://gitlab.com/mobicoop/v3/service/matcher.git
synced 2026-01-01 06:22:40 +00:00
add array min size check on schedule property
This commit is contained in:
@@ -57,6 +57,7 @@ export class MatchRequestDto {
|
||||
|
||||
@Type(() => ScheduleItemDto)
|
||||
@IsArray()
|
||||
@ArrayMinSize(1)
|
||||
@IsOptional()
|
||||
@ValidateNested({ each: true })
|
||||
schedule?: ScheduleItemDto[];
|
||||
|
||||
Reference in New Issue
Block a user