Files
gridpilot.gg/apps/api/src/domain/race/dtos/ProtestIncidentDTO.ts
2025-12-24 21:44:58 +01:00

22 lines
428 B
TypeScript

import { ApiProperty } from '@nestjs/swagger';
import { IsInt, IsNotEmpty, IsOptional, IsString, Min } from 'class-validator';
export class ProtestIncidentDTO {
@ApiProperty()
@IsInt()
@Min(0)
lap!: number;
@ApiProperty()
@IsString()
@IsNotEmpty()
description!: string;
@ApiProperty({ required: false, description: 'Seconds from race start' })
@IsOptional()
@IsInt()
@Min(0)
timeInRace?: number;
}