12 lines
312 B
Python
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",
|
|
)
|