import { ApiProperty } from '@nestjs/swagger'; import { IsString, IsBoolean } from 'class-validator'; export class RaceDetailEntryDTO { @ApiProperty() @IsString() id!: string; @ApiProperty() @IsString() name!: string; @ApiProperty() @IsString() country!: string; @ApiProperty({ nullable: true }) @IsString() avatarUrl!: string | null; @ApiProperty({ nullable: true }) rating!: number | null; @ApiProperty() @IsBoolean() isCurrentUser!: boolean; }