asaskevich / govalidator

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

Custom validators should return error instead of boolean #450

Open sergeyglazyrindev opened 3 years ago

sergeyglazyrindev commented 3 years ago
Q A
Documentation yes
Bugfix no
BC Break yes
New Feature yes
RFC no
QA yes

Description

Hey guys! This is important for custom validators to return specific error instead of boolean. Here is a pull request for this. Closes #444