go-ozzo / ozzo-validation

An idiomatic Go (golang) validation package. Supports configurable and extensible validation rules (validators) using normal language constructs instead of error-prone struct tags.
MIT License
3.73k stars 224 forks source link

How can I get a incorrect value or validation parameters? #139

Open tochka opened 3 years ago

tochka commented 3 years ago

Hello

I need to return user-friendly errors for example 'test' is out of range ('foo', 'bar'). I tried to use custom errors for change message but I cannot get validation parameters and validated value. Something like that was implemented in Length validation.