pssecret-server/pssecret/models.py
2024-12-26 23:25:54 +01:00

12 lines
312 B
Python

from pydantic import BaseModel, Field
class Secret(BaseModel):
data: str = Field(title="Secret", description="Some secret data")
class SecretSaveResult(BaseModel):
key: str = Field(
title="Retrieval key",
description="Key that should be used for retrieval of submitted secret",
)