Validate validates provided `i`. It is usually called after `Context#Bind()`. Validator must be registered using `Echo#Validator`.
(i any)
| 482 | // Validate validates provided `i`. It is usually called after `Context#Bind()`. |
| 483 | // Validator must be registered using `Echo#Validator`. |
| 484 | func (c *Context) Validate(i any) error { |
| 485 | if c.echo.Validator == nil { |
| 486 | return ErrValidatorNotRegistered |
| 487 | } |
| 488 | return c.echo.Validator.Validate(i) |
| 489 | } |
| 490 | |
| 491 | // Render renders a template with data and sends a text/html response with status |
| 492 | // code. Renderer must be registered using `Echo.Renderer`. |