"""Shared response schemas and the standardized error envelope.""" from pydantic import BaseModel class ErrorDetail(BaseModel): """Standard error payload returned for all non-2xx responses. ``errors`` is only present for validation failures (HTTP 422) and carries the per-field details. """ detail: str code: str errors: list[dict] | None = None class HealthResponse(BaseModel): """Payload of the health check endpoints.""" status: str = "ok" version: str class VersionResponse(BaseModel): """Payload of the version endpoint.""" app: str version: str