asaskevich / govalidator

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

required tag is not validating interface with nil value #443

Open oshankkumar opened 3 years ago

oshankkumar commented 3 years ago

Bug Report

Q A
Version(s) v0.0.0-20200428143746-21a406dcc535

Summary

required tag is not validating interface with nil value

Current behavior

How to reproduce

Add required tag on a field of interface type

Expected behavior

required tag should report error if field is of interface kind with nil value

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.