asaskevich / govalidator

[Go] Package of validators and sanitizers for strings, numerics, slices and structs
MIT License
6.05k stars 555 forks source link

Fix struct validation when options have num type check int, int8, float32, float64...etc #268

Closed jasonlam604 closed 6 years ago

jasonlam604 commented 6 years ago

Includes unit tests, fixed a test in TestValidateStruct due this fix the first test no longer breaks, it was breaking due to indicating numeric in zip, changed the first test zip to break (added letters).

asaskevich commented 6 years ago

Thank you!