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

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