[X] I have searched existing issues to ensure the feature has not already been requested
🚀 Feature Proposal
OpenAPI 3.1 has a concept of webhooks. It's similar to callbacks, but in webhooks, the API initiates the request. It's not an async response to the client's request.
Currently, Fastify Swagger doesn't support this feature.
Motivation
It's part of the OpenAPI 3.1 specification and it gives a lot of context for the API clients.
Prerequisites
🚀 Feature Proposal
OpenAPI 3.1 has a concept of webhooks. It's similar to callbacks, but in webhooks, the API initiates the request. It's not an async response to the client's request.
Currently, Fastify Swagger doesn't support this feature.
Motivation
It's part of the OpenAPI 3.1 specification and it gives a lot of context for the API clients.
Example
Defining the schema:
Should generate this OpenAPI specification: