File tree Expand file tree Collapse file tree 3 files changed +1
-6
lines changed Expand file tree Collapse file tree 3 files changed +1
-6
lines changed Original file line number Diff line number Diff line change @@ -92,7 +92,6 @@ async def lifespan(app: FastAPI):
9292 openapi_url = settings .openapi_spec_endpoint ,
9393 title = settings .swagger_ui_title ,
9494 init_oauth = settings .swagger_ui_init_oauth ,
95- parameters = settings .swagger_ui_parameters ,
9695 ).route ,
9796 include_in_schema = False ,
9897 )
Original file line number Diff line number Diff line change @@ -54,7 +54,6 @@ class Settings(BaseSettings):
5454 swagger_ui_url : Optional [str ] = "/api.html"
5555 swagger_ui_title : Optional [str ] = "STAC API"
5656 swagger_ui_init_oauth : dict = Field (default_factory = dict )
57- swagger_ui_parameters : dict = Field (default_factory = dict )
5857
5958 # Auth
6059 enable_authentication_extension : bool = True
Original file line number Diff line number Diff line change @@ -14,10 +14,7 @@ class SwaggerUI:
1414
1515 openapi_url : str
1616 title : Optional [str ] = "STAC API"
17- # https://swagger.io/docs/open-source-tools/swagger-ui/usage/oauth2/
1817 init_oauth : dict = field (default_factory = dict )
19- # https://swagger.io/docs/open-source-tools/swagger-ui/usage/configuration/
20- parameters : dict = field (default_factory = dict )
2118 oauth2_redirect_url : str = "/docs/oauth2-redirect"
2219
2320 async def route (self , req : Request ) -> HTMLResponse :
@@ -32,5 +29,5 @@ async def route(self, req: Request) -> HTMLResponse:
3229 title = f"{ self .title } - Swagger UI" ,
3330 oauth2_redirect_url = oauth2_redirect_url ,
3431 init_oauth = self .init_oauth ,
35- swagger_ui_parameters = self . parameters ,
32+ swagger_ui_parameters = None ,
3633 )
You can’t perform that action at this time.
0 commit comments