Files
iddaai-be/src/modules/analysis/dto/analysis-request.dto.ts
T
2026-04-16 17:21:48 +03:00

17 lines
409 B
TypeScript

import { IsArray, IsString, ArrayMinSize, ArrayMaxSize } from "class-validator";
import { ApiProperty } from "@nestjs/swagger";
export class AnalyzeMatchesDto {
@ApiProperty({
description: "List of match IDs to analyze",
example: ["match-1", "match-2"],
minItems: 1,
maxItems: 20,
})
@IsArray()
@IsString({ each: true })
@ArrayMinSize(1)
@ArrayMaxSize(20)
matchIds: string[];
}