Replies: 3 comments
-
If anyone has some information on how to add these, that would be great! Thanks! |
Beta Was this translation helpful? Give feedback.
0 replies
-
@tiangolo I've started a PR with a basic implementation that enables creating APIRoutes for callback objects. If you can take a look to see if this is along the lines of what you'd expect for this -- that would be great. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Thanks for your PR @booooh ! As it's already merged, I'm gonna close this issue now. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Description
It's my understanding that OpenAPI 3.0 added support for callback objects (https://swagger.io/docs/specification/callbacks/)
As such, it allows defining the schema/model for the operation that the callback would need to implement.
How can I Include the details of a callback specification for an operation?
I couldn't find a way to attach this information to a Route/Operation.
Ideally, I would be able to define the schema of the request that would be handled by the callback.
Additional context
This is the spec definition for callback objects:
https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.2.md#callbackObject
Beta Was this translation helpful? Give feedback.
All reactions