27 lines
486 B
TypeScript
27 lines
486 B
TypeScript
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;
|
|
} |