-
-
Notifications
You must be signed in to change notification settings - Fork 7.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ValidationPipe - forbidUnknownValues support #706
Comments
Actually, it is supported (https://docs.nestjs.com/pipes) |
I couldn't get it working, but it might be related to some 'class-validator' bug. Anyway i think we need to include it in https://github.com/nestjs/nest/blob/master/packages/common/interfaces/external/validator-options.interface.ts |
This worked for me: |
Ahh, got it. |
Fixed in |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
I'm submitting a...
Current behavior
ValidationPipe doesn't support
forbidUnknownValues
options propertyExpected behavior
It should support it
Minimal reproduction of the problem with instructions
What is the motivation / use case for changing the behavior?
It is important validation mechanism also this option will be set to true in 1.0 class-validator release
Environment
The text was updated successfully, but these errors were encountered: