Closed mklimuk closed 6 years ago
After some digging in I suppose the error is due to the fact that Indirect(value interface{}) (interface{}, bool)
method does not resolve pointers to uint32 properly. I'll try to issue a PR if I manage to fix the issue.
Ok, my bad. It just requires to set the validator value in the target type. So validation.Min(uint32(1))
fixed it for me. Closing...
I stumbled upon this when trying to validate a struct with uint32 field. The validation fails with
Here's a complete test case: