Open MathiasYde opened 1 month ago
We ran into this same problem so I wanted to just drop you a note, you can pass the lifespan=lifespan to the VersionedFastAPI(app) call and it should work. That constructor takes kwargs and passes them onto the base FastAPI app.
app = VersionedFastAPI(
app,
lifespan=lifespan
)
Describe the bug When using VersionedFastAPI wrapper object, lifespan event is not called
To Reproduce Run
Expected behavior The lifespan events should still be called using or not using VersionedFastAPI