Is there a way to use OpenApiHono with the handle of hono/aws-lambda? #3591
albertovasquez
started this conversation in
General
Replies: 2 comments 1 reply
-
I'm not using AWS Lambda, const oapiApp = new OpenAPIHono()
const app = new Hono()
oapiApp.doc('/openapi.json', {
...your openapi schema
})
app.get('/openapi.json', (c) => oapiApp.request('/openapi.json'))
export default app |
Beta Was this translation helpful? Give feedback.
1 reply
-
I am working on this middleware for OpenAPI support in Hono: https://github.com/rhinobase/hono-openapi. It's just a middleware, so if you have an AWS handler-based Hono app, this should work like normal. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Something like this?
Beta Was this translation helpful? Give feedback.
All reactions