fastapi-code-generator icon indicating copy to clipboard operation
fastapi-code-generator copied to clipboard

Feature request: support for `callbacks`

Open jnu opened this issue 9 months ago • 0 comments

The OpenAPI specification allows of the definition of callback operations. FastAPI supports this by constructing an additional router and passing this router's routes to the relevant path decorator. (More information here.)

This is mostly a problem for documentation, since the callback has no functional meaning to FastAPI. But ideally, the OpenAPI files generated by FastAPI (/openapi.json, /docs/, /redoc/) are as close to the original schema as possible.

jnu avatar May 14 '24 22:05 jnu