Merge pull request #20 from Danakcorp/mrtz

fix : remove required from values dto
This commit is contained in:
morteza-mortezai
2025-10-25 10:33:57 +03:30
committed by GitHub
@@ -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({