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

export class AddTagDto {
  @ApiProperty({ description: 'Tag to add', example: 'vip' })
  @IsString()
  @MaxLength(100)
  tag: string;
}

export class RemoveTagsDto {
  @ApiProperty({ description: 'Tags to remove', example: ['vip', 'beta'] })
  @IsArray()
  @IsString({ each: true })
  tags: string[];
}

export class SyncTagsDto {
  @ApiProperty({ description: 'Full list of tags (replaces existing)', example: ['vip', 'active', 'premium'] })
  @IsArray()
  @IsString({ each: true })
  tags: string[];
}
