Upgrade to Pydantic 2.13
Recipe ID
org.openrewrite.python.migrate.pydantic.UpgradeToPydantic213Artifactopenrewrite-migrate-pythonMigrate code for Pydantic 2.13. Pydantic 2.13 introduced no new deprecations (an additive release), so this applies all Pydantic 2.12 migrations (which chain back to 2.10).
Composite recipepythonpydanticmigration2.13Proprietary
Usage
This recipe has no required configuration options. You’ll need the Moderne CLI configured before running the command below.
mod run . --recipe org.openrewrite.python.migrate.pydantic.UpgradeToPydantic213If the recipe isn’t available locally, install it with:
mod config recipes pip install openrewrite-migrate-pythonDefinition
This recipe runs the following recipes in order.
- Upgrade to Pydantic 2.12
org.openrewrite.python.migrate.pydantic.UpgradeToPydantic212