Skip to content

Commit 62fc7a0

Browse files
committed
Correct types
1 parent 244713c commit 62fc7a0

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/stac_auth_proxy/config.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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

src/stac_auth_proxy/handlers/swagger_ui.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"""Swagger UI handler."""
22

33
from dataclasses import dataclass, field
4+
from typing import Optional
45

56
from fastapi.openapi.docs import get_swagger_ui_html
67
from 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/

0 commit comments

Comments
 (0)