Architecture
Stable v1.4.8
Type system
How handler request and response types become an HTTP contract.
Type system
EchoNext recognizes typed handler shapes for routes with and without request bodies and responses.
func(c echo.Context) (Response, error)
func(c echo.Context, request Request) (Response, error)
func(c echo.Context) errorThe wrapper inspects the handler, creates the request value, binds JSON or query fields, validates it, invokes the handler, and serializes the response.
Tag responsibilities
jsoncontrols JSON field names and omission.querymaps query-string values.validatedeclares request constraints.
Use named structs for public requests and responses. They produce clearer compiler errors, tests, and OpenAPI schemas than deeply nested anonymous values.