diff --git a/app/models/HTTPError.py b/app/models/HTTPError.py index b618943..1814461 100644 --- a/app/models/HTTPError.py +++ b/app/models/HTTPError.py @@ -1,10 +1,10 @@ -from pydantic import BaseModel +from pydantic import BaseModel, ConfigDict class HTTPError(BaseModel): - detail: str - - class Config: + model_config = ConfigDict( json_schema_extra = { "example": {"detail": "HTTPException raised."}, - } \ No newline at end of file + } + ) + detail: str \ No newline at end of file