From f88f19f57ecd53de2e320212ac430a46049437c8 Mon Sep 17 00:00:00 2001 From: Pylakey Date: Tue, 16 Jan 2024 10:42:22 +0300 Subject: [PATCH] Updated README.md according to Pydantic v2 changes --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 5fc0486..8b08ce6 100644 --- a/README.md +++ b/README.md @@ -163,7 +163,7 @@ async def main(): ) except pydantic_aiohttp.HTTPUnprocessableEntity as e: # response field of exception now contain parsed pydantic model entity - print(e.response.detail[0].json(indent=4)) + print(e.response.detail[0].model_dump_json(indent=4)) # >>> # { # "loc": [