You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently using custom decorator to wrap the ApiProperty.
During the step there's change on the key name from enumType => enum.
I didn't explicitly set the enum to be undefined. But if the enumType is missing, it'll pass undefined to the enum, causing the issue.
I do know this can be solved by checking enumType before setting it to ApiProperty and I fixed my case this way. But I don't think it's an expected behaviour.
Is there an existing issue for this?
Current behavior
Query parameter
name
shown asnumber
despite the dtotype
saysstring
Minimum reproduction code
https://github.com/nxht/test-nestjs
Steps to reproduce
pnpm install
pnpm start:dev
Expected behavior
Query parameter
name
should bestring
Package version
8.1.0
NestJS version
10.4.15
Node.js version
20.9.0
In which operating systems have you tested?
Other
DTO tested:
When the
enum: undefined
is removed, it works normally.The text was updated successfully, but these errors were encountered: