fix: ValidateNested always fails with optional/nullable values even when IsOptional({each:true})
is set
#2587
Labels
status: needs triage
Issues which needs to be reproduced to be verified report.
type: fix
Issues describing a broken feature.
Description
Minimal code-snippet showcasing the problem
https://codesandbox.io/p/sandbox/class-validator-forked-kfxxkq?file=%2Fsrc%2Findex.ts%3A38%2C46
Expected behavior
Since we have
@IsOptional({ each: true })
, I expect these fields to not have any validation errors when containing nullsActual behavior
Returns validation errors:
The text was updated successfully, but these errors were encountered: