import { IsNotEmpty, IsOptional, IsString, IsInt, Min } from 'class-validator';
import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger';

export class CreateSeasonDto {
  @ApiProperty({ example: 1 })
  @IsInt()
  @IsNotEmpty()
  @Min(1)
  number: number;

  @ApiPropertyOptional({ example: 'Season 1: The Beginning' })
  @IsOptional()
  @IsString()
  title?: string;
}
