Files
signal-platform/app/schemas/common.py
Dennis Thiessen 61ab24490d
Some checks failed
Deploy / lint (push) Failing after 7s
Deploy / test (push) Has been skipped
Deploy / deploy (push) Has been skipped
first commit
2026-02-20 17:31:01 +01:00

14 lines
303 B
Python

"""Shared API schemas used across all endpoints."""
from typing import Any, Literal
from pydantic import BaseModel
class APIEnvelope(BaseModel):
"""Standard JSON envelope for all API responses."""
status: Literal["success", "error"]
data: Any | None = None
error: str | None = None