-
-
Notifications
You must be signed in to change notification settings - Fork 1.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
Request validator tag "required-if" is invalid #3484
Comments
required-if 规则在 min 规则之后时 required 失效 不传递参数也能验证通过;在min规则之前则正常 |
When the required-if rule is after the min rule, required is invalid and the verification can pass without passing parameters; it is normal before the min rule. |
@fainc @gqcn 但是如果反过来,验证min规则其实是没有通过的,返回了错误 函数的路径:gogf\gf\[email protected]\util\gvalid\gvalid_validator_check_struct.go |
@wln32 搞一下? |
@wln32 Do it? |
@fainc I can’t do it. The verification code contains a lot of if judgments. You can try adding an if judgment to the code I analyzed to see if it can satisfy the result you want. |
Get http://127.0.0.1:8002/workspace/district/list/level?page=1 //⚠️ no xx field
Go Version: go1.20.8
GF Version: v2.6.4
The text was updated successfully, but these errors were encountered: