Let's say I have a DTO with a category property:
@ApiProperty()
@IsEnum(Category)
category: Category;
and then I have some other property
@ApiProperty()
@IsString()
@MaxLength(1000)
name: string
And what I want to do is change the max length number of name conditionally depending on what category is chosen - if it's "x" then it should be 500, if it's "y" then 700 etc. Is it something I could do easily?