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

export class CreateInjuryDto {
  @ApiProperty({
    description: 'Injury description',
    example: 'Травма правого колена',
  })
  @IsString()
  @IsNotEmpty()
  description: string;

  @ApiPropertyOptional({
    description: 'Injury severity level',
    example: 'moderate',
  })
  @IsString()
  @IsOptional()
  severity?: string;
}
