Pydantic v2 support #621
Replies: 6 comments 2 replies
-
Second this, I'm facing a similar problem that's blocking the usage of the package or update of the fastapi :( I'm happy to help if I can. |
Beta Was this translation helpful? Give feedback.
-
Tiangolo has upgraded FastAPI to Pydantic v2, and said last week that he'll port SQLModel next. Let's see when he gets to it, hopefully soon. If not, there's a nice migration guide from Pydantic folks that maybe makes it easy enough for someone else too. |
Beta Was this translation helpful? Give feedback.
-
I had a few minutes to spare and started the work, slowly: #622 |
Beta Was this translation helpful? Give feedback.
-
Also important for me. Pretty sure Sebastian is already working on it :) |
Beta Was this translation helpful? Give feedback.
-
Should I fork to add pydantic/sqlalchemy 2 support or wait? If it's in the works I'd like to contribute. |
Beta Was this translation helpful? Give feedback.
-
FastAPI supports Pydantic >=2.0.0 since version 0.100.0 but that does not help when all the packages you end up depending on in your FastAPI application only support <2.0.0. pip can't resolve dependencies and my app is a paperweight without any way forward. I need Pydantic >=2.0.0 due to an ugly bug in the older versions. |
Beta Was this translation helpful? Give feedback.
-
First Check
Commit to Help
Example Code
Description
Hi, big fan of fastapi, sqlmodel and pydantic here!
I'm currently using this stack in 2 projects, I was trying to update fastapi and pydantic tro try the new pydantic v2, but I'm currently getting this error
sqlmodel 0.0.8 requires pydantic<2.0.0,>=1.8.2,
Was wondering if there is currently a workaround to be able to use pydantic v2, or if there a is a plan to be compatible with pydantic v2.
Not demanding a fixed timeline, I know OSS can be harsh so just wanted to know if it was on sqlmodel's plans to support the pydantic v2 package in the foreseeable future.
Operating System
Linux, macOS
Operating System Details
No response
SQLModel Version
0.0.8
Python Version
3.11.3
Additional Context
No response
Beta Was this translation helpful? Give feedback.
All reactions