swag icon indicating copy to clipboard operation
swag copied to clipboard

Describe callbacks/webhooks

Open csiwek opened this issue 2 years ago • 1 comments

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/

csiwek avatar Aug 12 '22 08:08 csiwek

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.

johan-lejdung avatar Aug 17 '22 08:08 johan-lejdung