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",
Select = "select",
Number = "number",
CheckBox = "checkbox",
Boolean = "boolean",
// Input = "input",
}
@@ -32,7 +32,6 @@ export class CreateCategoryAttDTO {
@Expose()
@IsOptional()
@IsNotEmpty()
@IsString()
@ApiProperty({ type: "string", description: "hint of the attribute", example: "نوع پارچه" })
hint: string;
@@ -42,7 +42,6 @@ export class UpdateCategoryAttDTO {
@Expose()
@IsOptional()
@IsNotEmpty()
@IsString()
@ApiProperty({ type: "string", description: "hint of the attribute", example: "نوع پارچه" })
hint: string;