Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update to Pydantic 2 #286

Open
scy opened this issue Dec 12, 2024 · 0 comments
Open

Update to Pydantic 2 #286

scy opened this issue Dec 12, 2024 · 0 comments
Labels
area:backend Related to the server component prio:B Major impact, but not essential topic:python-3.13 For Python 3.13 support type:enhancement New feature or request

Comments

@scy
Copy link
Collaborator

scy commented Dec 12, 2024

Pydantic 1 is still supported with current versions of FastAPI and SQLModel, but starts to throw warnings in Python 3.13, cf. 73174ad.

However, Pydantic 2 also brings a couple of changes that might need addressing with some of our models. Also, we're currently limited to SQLModel < 0.0.11 (see 706462b), and SQLModel doesn't support Pydantic 2 before 0.0.12. In other words, we'll need to update SQLModel (and our models) first, which will need some SQLAlchemy knowledge.

@scy scy added type:enhancement New feature or request area:backend Related to the server component labels Dec 12, 2024
@scy scy added prio:B Major impact, but not essential topic:python-3.13 For Python 3.13 support labels Dec 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:backend Related to the server component prio:B Major impact, but not essential topic:python-3.13 For Python 3.13 support type:enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant