You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello guys!
I am writing some go project and I thought it would be better if we return from custom validators specific error, instead of boolean. That helps to use custom validators to validate different possible wrong cases. Basically, in my project I wanted to create custom validator to validate username against few rules, instead of writing long struct field annotations.
But seems like it's not possible right now.
I can do that if community likes this idea.
The text was updated successfully, but these errors were encountered:
Feature Request
New Feature : yes
RFC: no
BC Break: no
Summary
Hello guys!
I am writing some go project and I thought it would be better if we return from custom validators specific error, instead of boolean. That helps to use custom validators to validate different possible wrong cases. Basically, in my project I wanted to create custom validator to validate username against few rules, instead of writing long struct field annotations.
But seems like it's not possible right now.
I can do that if community likes this idea.
The text was updated successfully, but these errors were encountered: