We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bind and Validate are both customizable. It might be nice to provide a sugar method to do both:
func (c *Context) BindValidate(ptr interface{}) error { err := c.Bind(c) if err != nil { return err } return c.Validate(ptr) }
The text was updated successfully, but these errors were encountered:
I just realized that I can do this easily with CustomBinder:
func (cb *CustomBinder) Bind(i interface{}, c echo.Context) (err error) { b := &echo.DefaultBinder{} if err = b.Bind(i, c); err != nil { return } return validate.Struct(i) }
Sorry, something went wrong.
No branches or pull requests
Bind and Validate are both customizable. It might be nice to provide a sugar method to do both:
The text was updated successfully, but these errors were encountered: