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

Webhooks (OAS 3.1) support #508

Open
vvarp opened this issue Jan 9, 2025 · 3 comments
Open

Webhooks (OAS 3.1) support #508

vvarp opened this issue Jan 9, 2025 · 3 comments

Comments

@vvarp
Copy link

vvarp commented Jan 9, 2025

Are there any plans to support webhooks field from OAS 3.1 spec?
It is like the last thing holding me off from migration :)

On a side note: I know project is pretty recent as compared to more established OpenAPI documentation tools, but it is amazing how much been achieved so far, and how you managed to keep it packed with features while staying on the side of simplicity and ease of use - well done!

Copy link

linear bot commented Jan 9, 2025

@dan-lee
Copy link
Contributor

dan-lee commented Jan 10, 2025

Thanks for your kind words, really appreciated 🙏

The webhooks feature is not directly on the roadmap, but we would of course like to support it. As we haven't explored it further yet, I'm interested in what you think it could look like on the API documentation page. Maybe it isn't too much effort after all

@vvarp
Copy link
Author

vvarp commented Jan 10, 2025

Not sure what spec says exactly as I haven't dig into it too deeply, but what I'd expect is pretty much plain render of schema that's tied to specific type of webhook event.

To give a simplest example possible, here's a bit of a schema and how it renders out in redoc:

webhooks:
  RefundEvent:
    post:
      summary: Refund
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/RefundEventPayload'
      responses:
        '200':
          description: No response body
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants