mdrs-client-python/mdrsclient/models/error.py

15 lines
256 B
Python
Raw Permalink Normal View History

2023-05-01 20:00:32 +09:00
from pydantic.dataclasses import dataclass
@dataclass(frozen=True)
class DRFStandardizedError:
code: str
detail: str
attr: str | None
@dataclass(frozen=True)
class DRFStandardizedErrors:
type: str
errors: list[DRFStandardizedError]