npm / @hono/zod-openapi
@hono/zod-openapi
What changed in @hono/zod-openapi 1, from its official release notes, upgrade guides and advisories. Sources checked 2026-10-24.
1 breaking1 performance2 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli init@hono/zod-openapi 14 changes
Breaking changes 1
JSON or form requests whose Content-Type matches none of the route's declared media types now return 415 instead of validating an empty object.
Performance 1
Projected response types are reused between route handlers and returned schemas to reduce TypeScript checker work.
Fixes and other changes 2
The handler now infers the route middleware environment.
Batched route type inference is flattened so large openapiRoutes tuples do not hit TypeScript's recursive instantiation limit.