fix: allow extra environment variables in Settings config
Pydantic Settings now ignores extra env vars like db_user, db_password, redis_password. Job ID: MTAD-IMPL-2025-11-18-CL
This commit is contained in:
parent
a6cbbdc4d3
commit
48e8de6cd6
1 changed files with 1 additions and 0 deletions
|
|
@ -81,6 +81,7 @@ class Settings(BaseSettings):
|
||||||
class Config:
|
class Config:
|
||||||
env_file = ".env"
|
env_file = ".env"
|
||||||
case_sensitive = False
|
case_sensitive = False
|
||||||
|
extra = "ignore"
|
||||||
|
|
||||||
|
|
||||||
settings = Settings()
|
settings = Settings()
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue