pssecret-server/pssecret_server/models.py

12 lines
326 B
Python

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