pssecret-server/pssecret_server/models.py

13 lines
326 B
Python
Raw Normal View History

2024-12-26 22:25:54 +00:00
from pydantic import BaseModel, Field
2022-12-17 13:34:40 +00:00
class Secret(BaseModel):
2025-01-06 16:20:04 +00:00
data: str = Field(title="Secret", description="Some secret data", min_length=1)
2022-12-17 13:34:40 +00:00
class SecretSaveResult(BaseModel):
2024-12-26 22:25:54 +00:00
key: str = Field(
title="Retrieval key",
description="Key that should be used for retrieval of submitted secret",
)