← All recipes
Moderne licensed

Upgrade to Pydantic 2.13

Recipe IDorg.openrewrite.python.migrate.pydantic.UpgradeToPydantic213Artifactopenrewrite-migrate-python

Migrate 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.UpgradeToPydantic213

If the recipe isn’t available locally, install it with:

mod config recipes pip install openrewrite-migrate-python

Definition

This recipe runs the following recipes in order.