diff --git a/src/common/enums/category.enum.ts b/src/common/enums/category.enum.ts index d603808..7c84c0e 100644 --- a/src/common/enums/category.enum.ts +++ b/src/common/enums/category.enum.ts @@ -9,6 +9,6 @@ export enum categoryAttType { Text = "text", Select = "select", Number = "number", - CheckBox = "checkbox", + Boolean = "boolean", // Input = "input", } diff --git a/src/modules/category/DTO/createCategoryAtt.dto.ts b/src/modules/category/DTO/createCategoryAtt.dto.ts index 743d258..4f3f171 100644 --- a/src/modules/category/DTO/createCategoryAtt.dto.ts +++ b/src/modules/category/DTO/createCategoryAtt.dto.ts @@ -32,7 +32,6 @@ export class CreateCategoryAttDTO { @Expose() @IsOptional() - @IsNotEmpty() @IsString() @ApiProperty({ type: "string", description: "hint of the attribute", example: "نوع پارچه" }) hint: string; diff --git a/src/modules/category/DTO/updateCategoryAtt.dto.ts b/src/modules/category/DTO/updateCategoryAtt.dto.ts index 0db6124..aba5f65 100644 --- a/src/modules/category/DTO/updateCategoryAtt.dto.ts +++ b/src/modules/category/DTO/updateCategoryAtt.dto.ts @@ -42,7 +42,6 @@ export class UpdateCategoryAttDTO { @Expose() @IsOptional() - @IsNotEmpty() @IsString() @ApiProperty({ type: "string", description: "hint of the attribute", example: "نوع پارچه" }) hint: string;