asaskevich / govalidator

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

Validate the child struct if it's a pointer #249

Closed blind-oracle closed 6 years ago

blind-oracle commented 6 years ago

This fixes https://github.com/asaskevich/govalidator/issues/210 The diff is quite big because gofmt went through the test file.

Strange thing that test had substructs as pointers, but in fact, the validation of these structs didn't work. I've added another example to the test to verify exactly this.


This change is Reviewable