Compare commits

..

2 commits

Author SHA1 Message Date
e6bbd01ea9 Ignoring unknown vars in .env file 2025-01-06 17:20:29 +01:00
6463f6f9a2 Not accepting empty strings 2025-01-06 17:20:04 +01:00
2 changed files with 2 additions and 2 deletions

View file

@ -2,7 +2,7 @@ from pydantic import BaseModel, Field
class Secret(BaseModel):
data: str = Field(title="Secret", description="Some secret data")
data: str = Field(title="Secret", description="Some secret data", min_length=1)
class SecretSaveResult(BaseModel):

View file

@ -3,7 +3,7 @@ from pydantic_settings import BaseSettings, SettingsConfigDict
class Settings(BaseSettings):
model_config = SettingsConfigDict(env_file=".env")
model_config = SettingsConfigDict(env_file=".env", extra="ignore")
redis_url: RedisDsn = RedisDsn("redis://localhost")
secrets_encryption_key: bytes