import { IsArray, IsString, MaxLength, ArrayMaxSize } from 'class-validator';
import { ApiProperty } from '@nestjs/swagger';

export class UpdateSkillsDto {
  @ApiProperty({
    example: ['Kubernetes', 'Docker', 'AWS', 'Terraform'],
    description: 'Komplettes Skills-Array (ersetzt vorhandene Skills)',
  })
  @IsArray()
  @IsString({ each: true })
  @MaxLength(100, { each: true, message: 'Jeder Skill darf maximal 100 Zeichen lang sein' })
  @ArrayMaxSize(50, { message: 'Maximal 50 Skills erlaubt' })
  skills!: string[];
}
