website cleanup
This commit is contained in:
21
apps/api/src/domain/race/dtos/ProtestIncidentDTO.ts
Normal file
21
apps/api/src/domain/race/dtos/ProtestIncidentDTO.ts
Normal file
@@ -0,0 +1,21 @@
|
||||
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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user