Skip to content

[@hono/zod-openapi] Please add a webhook endpoint composer like createWebHook #1409

@mrmeaow

Description

@mrmeaow

Which middleware is the feature for?

@hono/zod-openapi

What is the feature you are proposing?

Requesting to add a new function createWebHook() to define and register a webhook endpoint instead of paths.

Caution

I couldn't manage to parse zod schemas for webhooks, even though I used app.OpenAPIRegistry.... still it doesn't recognize the request/response schemas from our passed zod schemas.

createRoute works fine for all but if OAS UIs (e.g. Scalar, Swagger, etc.) cannot recognize our openapi specs for webhooks, then its not a good feeling at all.

We would like to have OAS 3.1+ specs generation that can include proper webhooks instead of using paths via createRoute for all.

:)

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions