You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ImportError: cannot import name 'get_model_definitions' from 'fastapi.openapi.utils' (/home/anton/.local/lib/python3.11/site-packages/fastapi/openapi/utils.py)
Error is caused by FastAPI that recently switched to Pydantic v2. See the commit here.
I created this issue mainly to document the issue, and to perhaps revisit later myself (considering the lack of activity in the project).
The text was updated successfully, but these errors were encountered:
When running the following example code:
With the following versions and Python v3.11.4:
With:
The application fails with the following message:
Error is caused by FastAPI that recently switched to Pydantic v2. See the commit here.
I created this issue mainly to document the issue, and to perhaps revisit later myself (considering the lack of activity in the project).
The text was updated successfully, but these errors were encountered: