Skip to content

fastapi: bugfix after upgrade, replace fastapi-versioning by native include_router.#665

Merged
nuclearcat merged 1 commit intokernelci:mainfrom
nuclearcat:fix-after-upgrade
Apr 9, 2026
Merged

fastapi: bugfix after upgrade, replace fastapi-versioning by native include_router.#665
nuclearcat merged 1 commit intokernelci:mainfrom
nuclearcat:fix-after-upgrade

Conversation

@nuclearcat
Copy link
Copy Markdown
Member

fastapi-versioning transplants route objects by directly appending them to sub-app router.routes. In New FastAPI + Starlette this doesnt work properly. Let's replace VersionedFastAPI with include_router, which properly re-creates APIRoute objects through APIRoute.init — ensuring FastAPI's request_response wrapper is used. P.S. fastapi-versioning and fastapi-users are both poorly maintained and source of many issues.

…nclude_router.

fastapi-versioning transplants route objects by directly appending them to sub-app router.routes. In New FastAPI + Starlette this doesnt work properly.
Let's replace VersionedFastAPI with include_router, which properly re-creates APIRoute objects through APIRoute.__init__ — ensuring FastAPI's request_response wrapper is used.
P.S. fastapi-versioning and fastapi-users are both poorly maintained and source of many issues.

Signed-off-by: Denys Fedoryshchenko <denys.f@collabora.com>
@nuclearcat nuclearcat added this pull request to the merge queue Apr 9, 2026
Merged via the queue into kernelci:main with commit 2f88787 Apr 9, 2026
3 checks passed
@nuclearcat nuclearcat deleted the fix-after-upgrade branch April 9, 2026 01:17
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 this pull request may close these issues.

1 participant