import { ApiProperty } from '@nestjs/swagger';
import { IsOptional, ValidateNested } from 'class-validator';
import { Type } from 'class-transformer';
import { LeagueConfigFormModelDTO } from './LeagueConfigFormModelDTO';

export class LeagueAdminConfigDTO {
  @ApiProperty({ type: () => LeagueConfigFormModelDTO, nullable: true })
  @IsOptional()
  @ValidateNested()
  @Type(() => LeagueConfigFormModelDTO)
  form!: LeagueConfigFormModelDTO | null;
}