Validator white space issue #2412
mehmetcekirdekci
started this conversation in
General
Replies: 1 comment 1 reply
-
Have you checked from panic stack-trace where this panic occurs? Echo does not do validation itself - it just wraps different libraries with its interface. If you are using https://github.com/go-playground/validator I think you would get better help if you browse issues there. Maybe you are dealing with this issue go-playground/validator#453 |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I have two validations in my request. While i declaring this struct to request, i set the property like:
json:"currency" validate:"gte=0, lte=2"
and then the panic got throwen. After that i checked this situation and refactored the declaration tojson:"currency" validate:"gte=0,lte=2"
. (There is no whitespace between gte and lte in second one.) Is this a bug? I think needs to trimspace to here. Or that whitespace has a mean? Thanks.Beta Was this translation helpful? Give feedback.
All reactions