mdrs-client-python/mdrsclient/models/error.py
2023-05-01 20:00:32 +09:00

15 lines
256 B
Python

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]