Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support @hono/zod-openapi type routes #94

Open
bruceharrison1984 opened this issue Feb 25, 2024 · 1 comment
Open

Support @hono/zod-openapi type routes #94

bruceharrison1984 opened this issue Feb 25, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@bruceharrison1984
Copy link
Contributor

bruceharrison1984 commented Feb 25, 2024

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 bruceharrison1984 added the enhancement New feature or request label Feb 25, 2024
@yusukebe
Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants