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
As of fastapi/fastapi#1596 FastAPI will autogenerate the servers section of the OpenAPI document if the FastAPI instance has a root_path set. This is crucial in setting up the right routes in things like the "Try it out" section of the Swagger docs page.
Because stac-fastapicustomizes the FastAPI.openapi method and does not pass the servers argument through, this section of the docs does not get autogenerated as it should.
The signature of StacAPI.customize_openapi should probably be updated to pass through all of the same arguments as the default FastAPI.openapi method.
As of fastapi/fastapi#1596 FastAPI will autogenerate the
servers
section of the OpenAPI document if theFastAPI
instance has aroot_path
set. This is crucial in setting up the right routes in things like the "Try it out" section of the Swagger docs page.Because
stac-fastapi
customizes theFastAPI.openapi
method and does not pass theservers
argument through, this section of the docs does not get autogenerated as it should.The signature of
StacAPI.customize_openapi
should probably be updated to pass through all of the same arguments as the defaultFastAPI.openapi
method.The text was updated successfully, but these errors were encountered: