You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Even with docs_url set to None, the docs are still served.
Per the FastAPI documentation, the app should no longer serve docs with this option set.
That same bit of code seems to be the responsible for always making the documentation avaialable at /docs even when provided a different url via the docs_url parameter.
Describe the bug
Even with
docs_url
set toNone
, the docs are still served.Per the FastAPI documentation, the app should no longer serve docs with this option set.
To Reproduce
Set
docs_url=None
when instantiating the FastAPI app andVersionedFastAPI
but still see the docs served at/docs
.Expected behavior
Expecting docs to no longer be served (for production use case).
Additional details
Issue may be here:
fastapi-versioning/fastapi_versioning/versioning.py
Lines 68 to 73 in 18d480f
The text was updated successfully, but these errors were encountered: