Merge pull request #20 from Danakcorp/mrtz
fix : remove required from values dto
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
import { Expose, Type } from "class-transformer";
|
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 { ApiProperty } from "../../../common/decorator/swggerDocs";
|
||||||
import { categoryAttType } from "../../../common/enums/category.enum";
|
import { categoryAttType } from "../../../common/enums/category.enum";
|
||||||
@@ -46,7 +46,6 @@ export class CreateCategoryAttDTO {
|
|||||||
@Expose()
|
@Expose()
|
||||||
@IsNotEmpty()
|
@IsNotEmpty()
|
||||||
@IsArray()
|
@IsArray()
|
||||||
@ArrayMinSize(1)
|
|
||||||
@ValidateNested({ each: true })
|
@ValidateNested({ each: true })
|
||||||
@Type(() => AttributeValue)
|
@Type(() => AttributeValue)
|
||||||
@ApiProperty({
|
@ApiProperty({
|
||||||
|
|||||||
Reference in New Issue
Block a user