maleo-foundation 0.2.67__py3-none-any.whl → 0.2.68__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- maleo_foundation/utils/exceptions.py +3 -1
- {maleo_foundation-0.2.67.dist-info → maleo_foundation-0.2.68.dist-info}/METADATA +1 -1
- {maleo_foundation-0.2.67.dist-info → maleo_foundation-0.2.68.dist-info}/RECORD +5 -5
- {maleo_foundation-0.2.67.dist-info → maleo_foundation-0.2.68.dist-info}/WHEEL +0 -0
- {maleo_foundation-0.2.67.dist-info → maleo_foundation-0.2.68.dist-info}/top_level.txt +0 -0
@@ -1,5 +1,6 @@
|
|
1
1
|
import asyncio
|
2
2
|
from fastapi import Request, status
|
3
|
+
from fastapi.encoders import jsonable_encoder
|
3
4
|
from fastapi.exceptions import RequestValidationError
|
4
5
|
from fastapi.responses import JSONResponse
|
5
6
|
from functools import wraps
|
@@ -24,8 +25,9 @@ class BaseExceptions:
|
|
24
25
|
|
25
26
|
@staticmethod
|
26
27
|
async def validation_exception_handler(request:Request, exc:RequestValidationError):
|
28
|
+
serialized_error = jsonable_encoder(exc.errors())
|
27
29
|
return JSONResponse(
|
28
|
-
content=BaseResponses.ValidationError(other=
|
30
|
+
content=BaseResponses.ValidationError(other=serialized_error).model_dump(mode="json"),
|
29
31
|
status_code=status.HTTP_422_UNPROCESSABLE_ENTITY
|
30
32
|
)
|
31
33
|
|
@@ -100,7 +100,7 @@ maleo_foundation/models/transfers/results/service/controllers/rest.py,sha256=wCu
|
|
100
100
|
maleo_foundation/utils/__init__.py,sha256=KoERe8U2ERGZeAKUNBPW_itk7g9YpH7v7_mD9_i050o,461
|
101
101
|
maleo_foundation/utils/client.py,sha256=F5X9TUxWQgeOHjwsMpPoSRhZANQYZ_iFv0RJDTUVhrw,2820
|
102
102
|
maleo_foundation/utils/controller.py,sha256=D8uUfqkMpPw8M8Ykn8Uxn7dfRGwxmBxSP1h9xSkYw1I,6945
|
103
|
-
maleo_foundation/utils/exceptions.py,sha256=
|
103
|
+
maleo_foundation/utils/exceptions.py,sha256=eM__Mxo-BC5d7JmoBd-Wh-fmryUdfjNfOuY_eONK5Fk,6361
|
104
104
|
maleo_foundation/utils/extractor.py,sha256=SZXVYDHWGaA-Dd1BUydwF2HHdZqexEielS4CjL0Ceng,814
|
105
105
|
maleo_foundation/utils/logging.py,sha256=W5Fhk_xAXVqSujaY8mv3hRH4wlQSpUn4ReuMoiKcQa4,7759
|
106
106
|
maleo_foundation/utils/merger.py,sha256=z9GROLVtGpwx84bOiakBFphKazsI-9l3F3WauTDwQLs,597
|
@@ -118,7 +118,7 @@ maleo_foundation/utils/loaders/credential/__init__.py,sha256=qopTKvcMVoTFwyRijeg
|
|
118
118
|
maleo_foundation/utils/loaders/credential/google.py,sha256=SKsqPuFnAiCcYLf24CxKnMybhVHpgqnq1gGSlThqjts,994
|
119
119
|
maleo_foundation/utils/loaders/key/__init__.py,sha256=hVygcC2ImHc_aVrSrOmyedR8tMUZokWUKCKOSh5ctbo,106
|
120
120
|
maleo_foundation/utils/loaders/key/rsa.py,sha256=gDhyX6iTFtHiluuhFCozaZ3pOLKU2Y9TlrNMK_GVyGU,3796
|
121
|
-
maleo_foundation-0.2.
|
122
|
-
maleo_foundation-0.2.
|
123
|
-
maleo_foundation-0.2.
|
124
|
-
maleo_foundation-0.2.
|
121
|
+
maleo_foundation-0.2.68.dist-info/METADATA,sha256=So5IYXyl2wFd4nmK_7NKNTrXvNQ6rXFlYXdufF3C5eI,3598
|
122
|
+
maleo_foundation-0.2.68.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
123
|
+
maleo_foundation-0.2.68.dist-info/top_level.txt,sha256=_iBos3F_bhEOdjOnzeiEYSrCucasc810xXtLBXI8cQc,17
|
124
|
+
maleo_foundation-0.2.68.dist-info/RECORD,,
|
File without changes
|
File without changes
|