From de42fd9c66f85a10384316f49af9889893ab416b Mon Sep 17 00:00:00 2001 From: morteza-mortezai Date: Sat, 25 Oct 2025 10:32:17 +0330 Subject: [PATCH] fix : remove required from values dto --- src/modules/category/DTO/createCategoryAtt.dto.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/modules/category/DTO/createCategoryAtt.dto.ts b/src/modules/category/DTO/createCategoryAtt.dto.ts index c8aefc2..743d258 100644 --- a/src/modules/category/DTO/createCategoryAtt.dto.ts +++ b/src/modules/category/DTO/createCategoryAtt.dto.ts @@ -1,5 +1,5 @@ import { Expose, Type } from "class-transformer"; -import { ArrayMinSize, IsArray, IsBoolean, IsEnum, IsNotEmpty, IsOptional, IsString, ValidateNested } from "class-validator"; +import { IsArray, IsBoolean, IsEnum, IsNotEmpty, IsOptional, IsString, ValidateNested } from "class-validator"; import { ApiProperty } from "../../../common/decorator/swggerDocs"; import { categoryAttType } from "../../../common/enums/category.enum"; @@ -46,7 +46,6 @@ export class CreateCategoryAttDTO { @Expose() @IsNotEmpty() @IsArray() - @ArrayMinSize(1) @ValidateNested({ each: true }) @Type(() => AttributeValue) @ApiProperty({