diff --git a/trade_remedies_public/config/cf_env.py b/trade_remedies_public/config/cf_env.py index c6d00588..afb047b1 100644 --- a/trade_remedies_public/config/cf_env.py +++ b/trade_remedies_public/config/cf_env.py @@ -1,4 +1,4 @@ -from typing import Optional, Any +from typing import Optional, Any, Dict from pydantic import BaseModel, ConfigDict, Field from pydantic_settings import BaseSettings @@ -50,15 +50,6 @@ class CloudFoundrySettings(BaseSettings): DEFAULT_CHUNK_SIZE: int = 33554432 FILE_MAX_SIZE_BYTES: int = 31457280 - @validator("BASIC_AUTH_USER", pre=True) - def parse_basic_auth_user(cls, value): - if isinstance(value, str): - try: - return json.loads(value) - except json.JSONDecodeError: - raise ValueError("Invalid JSON for BASIC_AUTH_USER") - return value - def get_allowed_hosts(self) -> list[str]: return self.ALLOWED_HOSTS.split(",") if self.ALLOWED_HOSTS else ["localhost"]