swag
swag copied to clipboard
Describe callbacks/webhooks
Hi,
What's the best way to describe callbacks/webhooks or any kind of Async communication? I'm having trouble with adding models since there are no controllers for that. At the moment, I created private, empty functions to describe callbacks but it is far from being elegant.
here are openapi specs for callbacks: https://swagger.io/docs/specification/callbacks/
Callbacks are in OpenAPI 3 whilst this package is currently only supporting OpenAPI 2, if I'm not mistaken.
I would also love some tips on how to best set this up, and also +1 the feature request to add support for Callbacks.