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

export class AssignRolesDto {
  @ApiProperty({
    description: 'Array of role IDs to assign to the user',
    example: ['clq1234567890role1', 'clq1234567890role2'],
    type: [String],
  })
  @IsArray()
  @ArrayMinSize(1, { message: 'At least one role must be specified' })
  @IsString({ each: true })
  roleIds: string[];
}
