import { ApiProperty } from '@nestjs/swagger';
import { IsNumber, IsOptional, IsEnum } from 'class-validator';

export class LeagueConfigFormModelDropPolicyDTO {
  @ApiProperty({ enum: ['none', 'worst_n'] })
  @IsEnum(['none', 'worst_n'])
  strategy: 'none' | 'worst_n';

  @ApiProperty({ required: false })
  @IsOptional()
  @IsNumber()
  n?: number;
}