fix : remove required from hint in dto
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user