first commit

This commit is contained in:
2023-05-01 20:00:32 +09:00
commit 819c4a6a07
39 changed files with 1866 additions and 0 deletions

View File

@ -0,0 +1,14 @@
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]