import { ApiProperty } from '@nestjs/swagger';
import { IsString } from 'class-validator';

export class RaceDetailLeagueDTO {
  @ApiProperty()
  @IsString()
  id!: string;

  @ApiProperty()
  @IsString()
  name!: string;

  @ApiProperty()
  @IsString()
  description!: string;

  @ApiProperty()
  settings!: {
    maxDrivers?: number;
    qualifyingFormat?: string;
  };
}