honox icon indicating copy to clipboard operation
honox copied to clipboard

Support `@hono/zod-openapi` type routes

Open bruceharrison1984 opened this issue 2 years ago • 1 comments

What is the feature you are proposing?

I found the @hono/zod-openapi to be great for producing OpenApi documentation fairly painlessly. The current HonoX API is very close to what @hono/zod-openapi does.

https://github.com/honojs/middleware/tree/main/packages/swagger-ui#with-openapihono-usage

Is it possible to get the same behavior in HonoX? I know you can declare routes in the "classic" Hono fashion to make use of this, but I was wondering if there is a way to make this a first-class feature of HonoX.

bruceharrison1984 avatar Feb 25 '24 03:02 bruceharrison1984

Hi @bruceharrison1984

Yeah, @hono/zod-openapi is great and some users are using this in production such as the unkey.

Is it possible to get the same behavior in HonoX? I know you can declare routes in the "classic" Hono fashion to make use of this, but I was wondering if there is a way to make this a first-class feature of HonoX.

I am okay with using the "classic" Hono style. After all, I think "classic" Hono fashion is very useful.

Or if any others have a good idea, we'd like to adopt it, so we can keep this open.

yusukebe avatar Feb 25 '24 10:02 yusukebe