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

export class UpdateTagGroupDto {
  @ApiProperty({ required: false })
  @IsOptional()
  @IsString()
  groupName?: string;

  @ApiProperty({ required: false, nullable: true })
  @IsOptional()
  @IsString()
  groupIcon?: string | null;

  @ApiProperty({ required: false, nullable: true })
  @IsOptional()
  @IsHexColor()
  groupColor?: string | null;

  @ApiProperty({ required: false })
  @IsOptional()
  @IsInt()
  @Min(0)
  sortOrder?: number;
}
