HonoH
Honoβ€’8mo ago
Mike

@hono/zod-openapi generates :param instead of {param} β€” breaks openapi-fetch compatibility

I'm using @hono/zod-openapi to generate an OpenAPI spec for my Hono backend, but it outputs paths like /channels/:handle instead of the OpenAPI standard /channels/{handle}. This breaks compatibility with openapi-fetch, which expects {param} syntax.

Is there a way to configure @hono/zod-openapi to output {param} format instead of :param? Or is post-processing the generated OpenAPI JSON the only option?

Appreciate any suggestions πŸ™
Was this page helpful?