Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: support for callbacks #419

Open
jnu opened this issue May 14, 2024 · 0 comments · May be fixed by #420
Open

Feature request: support for callbacks #419

jnu opened this issue May 14, 2024 · 0 comments · May be fixed by #420

Comments

@jnu
Copy link

jnu commented May 14, 2024

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 jnu linked a pull request May 14, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant