Not accepting empty strings

This commit is contained in:
Ivan Golikov 2025-01-06 17:20:04 +01:00
parent 7fae1a18b6
commit 6463f6f9a2

View file

@ -2,7 +2,7 @@ from pydantic import BaseModel, Field
class Secret(BaseModel): 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): class SecretSaveResult(BaseModel):