From 8552669e36a0c162a334f332f8478fe90234c7da Mon Sep 17 00:00:00 2001 From: Alix JEUDI--LEMOINE Date: Tue, 17 Dec 2024 14:12:17 +0100 Subject: [PATCH] =?UTF-8?q?=E2=99=BB=20Changed=20format=20of=20the=20class?= =?UTF-8?q?=20to=20match=20the=20Pydantic=20v3=20conventions?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/models/HTTPError.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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