File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -51,8 +51,8 @@ class Settings(BaseSettings):
5151 )
5252 openapi_auth_scheme_name : str = "oidcAuth"
5353 openapi_auth_scheme_override : Optional [dict ] = None
54- swagger_ui_url : str = "/api.html"
55- swagger_ui_title : str = "STAC API"
54+ swagger_ui_url : Optional [ str ] = "/api.html"
55+ swagger_ui_title : Optional [ str ] = "STAC API"
5656 swagger_ui_init_oauth : dict = Field (default_factory = dict )
5757 swagger_ui_parameters : dict = Field (default_factory = dict )
5858
Original file line number Diff line number Diff line change 11"""Swagger UI handler."""
22
33from dataclasses import dataclass , field
4+ from typing import Optional
45
56from fastapi .openapi .docs import get_swagger_ui_html
67from starlette .requests import Request
@@ -12,7 +13,7 @@ class SwaggerUI:
1213 """Swagger UI handler."""
1314
1415 openapi_url : str
15- title : str = "STAC API"
16+ title : Optional [ str ] = "STAC API"
1617 # https://swagger.io/docs/open-source-tools/swagger-ui/usage/oauth2/
1718 init_oauth : dict = field (default_factory = dict )
1819 # https://swagger.io/docs/open-source-tools/swagger-ui/usage/configuration/
You can’t perform that action at this time.
0 commit comments