-
Notifications
You must be signed in to change notification settings - Fork 7.9k
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
Undefined validation function 'exists' on field #2160
Comments
Gin.v1.4.0 use validator.v8 for validation and gin.v1.5.0 use validator.v9; So you can define the struct like this: I have got the correct result; |
But |
We should use |
How to validate optional fields, when they present only? |
@lovababu |
Description
just upgraded from v1.4.0 to v1.5.0 and end up with internal server error on tag
binding:"exists"
How to reproduce
Expectations
Actual result
Environment
The text was updated successfully, but these errors were encountered: