update icons dto

This commit is contained in:
morteza-mortezai
2025-12-16 12:20:37 +03:30
parent c38801ba09
commit c6797809f8
2 changed files with 1 additions and 18 deletions
+1 -7
View File
@@ -1,15 +1,9 @@
import { ApiProperty } from "@nestjs/swagger";
import { IsNotEmpty, IsOptional, IsString } from "class-validator";
import { IsNotEmpty, IsString } from "class-validator";
export class CreateGroupDto {
@IsNotEmpty()
@IsString()
@ApiProperty({ description: "Group name", example: "Navigation Icons" })
name: string;
@IsOptional()
@IsString()
@ApiProperty({ description: "Group description", example: "Icons used for navigation", required: false })
description?: string;
}
-11
View File
@@ -2,16 +2,6 @@ import { ApiProperty } from "@nestjs/swagger";
import { IsNotEmpty, IsOptional, IsString, IsUrl } from "class-validator";
export class CreateIconDto {
@IsNotEmpty()
@IsString()
@ApiProperty({ description: "Icon name", example: "home-icon" })
name: string;
@IsOptional()
@IsString()
@ApiProperty({ description: "Icon description", example: "Home icon", required: false })
description?: string;
@IsNotEmpty()
@IsUrl({ protocols: ["http", "https"], require_protocol: true })
@ApiProperty({ description: "Icon URL", example: "https://example.com/icons/home.svg" })
@@ -22,4 +12,3 @@ export class CreateIconDto {
@ApiProperty({ description: "Icon group ID", example: "group-123", required: false })
groupId?: string;
}