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