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
How to Enable BindValidation after it is diabled using gin.DisableBindValidation #2818
Comments
@NishantG01
I refer to the writing of this unit test
I hope this is the result you want |
Thanks for your response. Appreciate it. |
Then you may be able to use a custom tag verification method to prevent a special tag from being validated. Something like this:
|
Description
I want to limit the impact of gin.DisableBindValidation within a function and should be able to re-enable it.
Currently, I have many routes, all the routes need the gin validation and few routes need to consume the incoming request modify the data and then do the validation again
IF I use gin.DisableBindValidation, all the other routes get impacted.
How to reproduce
Expectations
Actual result
Environment
The text was updated successfully, but these errors were encountered: