first commit
This commit is contained in:
14
mdrsclient/models/error.py
Normal file
14
mdrsclient/models/error.py
Normal 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]
|
Reference in New Issue
Block a user