Not accepting empty strings
This commit is contained in:
parent
7fae1a18b6
commit
6463f6f9a2
1 changed files with 1 additions and 1 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):
|
||||
|
|
Loading…
Reference in a new issue