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 for OpenAPI 3.1.0 "webhooks" Property #1827

Open
1 task done
sperber-rbi opened this issue Feb 17, 2022 · 3 comments
Open
1 task done

Support for OpenAPI 3.1.0 "webhooks" Property #1827

sperber-rbi opened this issue Feb 17, 2022 · 3 comments
Labels

Comments

@sperber-rbi
Copy link

Is there an existing issue that is already proposing this?

  • I have searched the existing issues

Is your feature request related to a problem? Please describe it

As of version 3.1.0, OpenAPI now supports a top level "webhooks" keyword, for any webhooks which may be implemented by a consumer. The final definition may be found here.

Describe the solution you'd like

Implement a PR to allow defining webhooks within the generated OpenAPI document. I am happy to help develop said PR, however I would appreciate guidance on the appropriate implementation.

I imagine the ideal solution would be for us to be able to infer the defined webhooks from the application provided to the createDocument method, however I'm unsure what the mechanism would be to then register webhooks on a module, and I worry this change would then be out of the scope of this package. So I'd appreciate guidance from someone more familiar with Nest to propose an implementation.

Teachability, documentation, adoption, migration strategy

No response

What is the motivation / use case for changing the behavior?

I would like to be able to document webhooks within my application

@kamilmysliwiec
Copy link
Member

Would you like to create a PR for this issue?

@alenap93
Copy link
Contributor

@kamilmysliwiec Could i upgrade the library to OpenAPI 3.1.0?

@SushantChandla
Copy link

Hello, is this coming soon?

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

No branches or pull requests

4 participants