fix : remove required from hint in dto

This commit is contained in:
morteza-mortezai
2025-10-25 16:46:00 +03:30
parent 05d913b9a9
commit 3caa943a1b
3 changed files with 1 additions and 3 deletions
+1 -1
View File
@@ -9,6 +9,6 @@ export enum categoryAttType {
Text = "text", Text = "text",
Select = "select", Select = "select",
Number = "number", Number = "number",
CheckBox = "checkbox", Boolean = "boolean",
// Input = "input", // Input = "input",
} }
@@ -32,7 +32,6 @@ export class CreateCategoryAttDTO {
@Expose() @Expose()
@IsOptional() @IsOptional()
@IsNotEmpty()
@IsString() @IsString()
@ApiProperty({ type: "string", description: "hint of the attribute", example: "نوع پارچه" }) @ApiProperty({ type: "string", description: "hint of the attribute", example: "نوع پارچه" })
hint: string; hint: string;
@@ -42,7 +42,6 @@ export class UpdateCategoryAttDTO {
@Expose() @Expose()
@IsOptional() @IsOptional()
@IsNotEmpty()
@IsString() @IsString()
@ApiProperty({ type: "string", description: "hint of the attribute", example: "نوع پارچه" }) @ApiProperty({ type: "string", description: "hint of the attribute", example: "نوع پارچه" })
hint: string; hint: string;