19 lines
349 B
TypeScript
19 lines
349 B
TypeScript
import { ApiProperty } from '@nestjs/swagger';
|
|
import { IsNotEmpty, IsString } from 'class-validator';
|
|
|
|
export class RegisterForRaceParamsDTO {
|
|
@ApiProperty()
|
|
@IsString()
|
|
@IsNotEmpty()
|
|
raceId!: string;
|
|
|
|
@ApiProperty()
|
|
@IsString()
|
|
@IsNotEmpty()
|
|
leagueId!: string;
|
|
|
|
@ApiProperty()
|
|
@IsString()
|
|
@IsNotEmpty()
|
|
driverId!: string;
|
|
} |