asaskevich / govalidator

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

Fix issue# 454 validation of struct with generic map field #456

Open dex80526 opened 2 years ago

dex80526 commented 2 years ago
Q A
Documentation yes/no
Bugfix yes
BC Break no
New Feature no
RFC no
QA no

Description

This PR is to fix issue#454: https://github.com/asaskevich/govalidator/issues/454.

This PR adds extra check if the type is interface before call ValidatorStruct(). Add the corresponding tests.

sergeyglazyrindev commented 2 years ago

Hello guys! I forked this package cause owner disappeared. Hope, he will be back, but it would be easier to merge these changes back if he is back Link to my repo: create issue there and we'll discuss it.