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
Describe the Question
Use vd for parameter verification set $>=0 when eq 0 not effective
A clear and concise description of what the question is.
Reproducible Code
Please construct a minimum complete and reproducible example for us to get the same error. And tell us how to reproduce it like how you send a request or send what request.
Expected behavior
i want values from 0 to 100
Screenshots
Hertz version:
hz version v0.3.0
cwgo version v0.0.1
thrift v0.13.0
hertz v0.6.0
Environment:
go1.20.2 arm64
Additional context
Use parameter verification
i64 Weight (api.body="weight",api.vd="$>=0 && $=<100; msg:'weight must not in 0 -> 100'")
weight = 0 is error
The text was updated successfully, but these errors were encountered:
Describe the Question
Use vd for parameter verification set $>=0 when eq 0 not effective
A clear and concise description of what the question is.
Reproducible Code
Please construct a minimum complete and reproducible example for us to get the same error. And tell us how to reproduce it like how you send a request or send what request.
Expected behavior
i want values from 0 to 100
Screenshots
Hertz version:
hz version v0.3.0
cwgo version v0.0.1
thrift v0.13.0
hertz v0.6.0
Environment:
go1.20.2 arm64
Additional context
Use parameter verification
i64 Weight (api.body="weight",api.vd="$>=0 && $=<100; msg:'weight must not in 0 -> 100'")
weight = 0 is error
The text was updated successfully, but these errors were encountered: