Closed chunf closed 1 year ago
please share the query that we should make exactly
this:
isn't the same as this one:
Also, I didn't manage to reproduce your issue here:
Sorry, I found out that the issue is related to creating dto as a module. Will create a new issue for this.
Is there an existing issue for this?
Current behavior
At main.ts, if i set whitelist to be true,
And if my dto looks like this
if i post this json
Minimum reproduction code
https://codesandbox.io/p/sandbox/compassionate-bird-fscrxs?file=%2Fsrc%2Fmain.ts%3A9%2C1
Steps to reproduce
Expected behavior
expect the validation will pass and the child[0].name value is still available.
Package
Other package
No response
NestJS version
No response
Packages versions
Node.js version
18
In which operating systems have you tested?
Other
No response