Skip to content

Commit

Permalink
Updated README.md according to Pydantic v2 changes
Browse files Browse the repository at this point in the history
  • Loading branch information
pylakey committed Jan 16, 2024
1 parent 85b8872 commit f88f19f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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": [
Expand Down

0 comments on commit f88f19f

Please sign in to comment.