You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@noqcks this is not currently supported in terms of "generation" and I am not sure how would that look like in a real life scenario. You can however pass any arbitrary values to the openapi method and that way you can augment the generated documentation for your endpoint manually (with a direct JSON structure). So in that sense - we do support it.
If you have an idea of how automatic generation can be included - please share it here as an example and I would be open to including it in the library at some point. And if there is no such example - I'd go ahead and close the issue with the idea that callback can be manually added and that is enough.
To be honest there isn't much time on our side to actively develop features here, so if you want this rather fast - feel free to open up a PR and we can check it out
OpenAPI v3 has support for callbacks - a way of defining your webhooks and payloads using OpenAPI
I was wondering if zod-to-openapi supports this right now? I couldnt find any documentation or issues.
If not, would be great to have!
https://swagger.io/docs/specification/v3_0/callbacks/
The text was updated successfully, but these errors were encountered: