From 6463f6f9a2e8ae7a4d03008046029e5632be2d25 Mon Sep 17 00:00:00 2001 From: Ivan Golikov Date: Mon, 6 Jan 2025 17:20:04 +0100 Subject: [PATCH] Not accepting empty strings --- pssecret_server/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pssecret_server/models.py b/pssecret_server/models.py index aa64d3e..3298354 100644 --- a/pssecret_server/models.py +++ b/pssecret_server/models.py @@ -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):