DeanWay / fastapi-versioning

api versioning for fastapi web applications
MIT License
659 stars 64 forks source link

kwargs is not passed to "subapps" constructor in the "version_route_mapping" loop. #40

Open CharlesOliveros opened 3 years ago

CharlesOliveros commented 3 years ago

Describe the bug The function "VersionedFastAPI" is receiving the "kwargs", but this is not passed to the constructor of each API Version in the "version_route_mapping" loop. This does not allow that the apps' versions have the same properties that the parent app.

Steps to reproduce the fix:

  1. Go to the function versioning.VersionedFastAPI, and add the kwargs in the FastAPI constructor.