import { ApiProperty } from "@nestjs/swagger"; import { IsNotEmpty, IsOptional, IsString, IsUrl } from "class-validator"; export class CreateIconDto { @IsNotEmpty() @IsUrl({ protocols: ["http", "https"], require_protocol: true }) @ApiProperty({ description: "Icon URL", example: "https://example.com/icons/home.svg" }) url: string; @IsOptional() @IsString() @ApiProperty({ description: "Icon group ID", example: "group-123", required: false }) groupId?: string; }