Skip to content

Commit

Permalink
fix: os app settings allow extra
Browse files Browse the repository at this point in the history
  • Loading branch information
ovsds committed Dec 23, 2024
1 parent 413bacc commit fbffa43
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/dl_api_lib/dl_api_lib/app_settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

import attr
import pydantic
import pydantic_settings

from dl_api_commons.base_models import TenantDef
from dl_api_lib.connector_availability.base import ConnectorAvailabilityConfig
Expand Down Expand Up @@ -344,6 +345,11 @@ class AppSettingsOS(
dl_settings.WithFallbackEnvSource,
dl_settings.BaseRootSettings,
):
model_config = pydantic_settings.SettingsConfigDict(
extra=pydantic.Extra.ignore,
**dl_settings.BaseRootSettings.model_config,
)

AUTH: typing.Optional[dl_settings.TypedAnnotation[BaseAuthSettingsOS]] = None

fallback_env_keys = {
Expand Down

0 comments on commit fbffa43

Please sign in to comment.