Compare commits
2 commits
7fae1a18b6
...
e6bbd01ea9
Author | SHA1 | Date | |
---|---|---|---|
e6bbd01ea9 | |||
6463f6f9a2 |
2 changed files with 2 additions and 2 deletions
|
@ -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):
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue