resolvers icon indicating copy to clipboard operation
resolvers copied to clipboard

When using `classValidatorResolver`, combining `@IsOptional()` with `@Length()` makes the field required

Open angelxmoreno opened this issue 1 year ago • 0 comments

Describe the bug When using classValidatorResolver, combining @IsOptional() with @Length() makes the field required

To Reproduce codesandbox.io

Expected behavior I expect @IsOptional() to mark the field as not required, though I feel like i am missing a setting of sorts

angelxmoreno avatar Mar 21 '24 22:03 angelxmoreno