← All recipes
Moderne licensed

Find deprecated schema_generator config option

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

Pydantic 2.10 deprecated the schema_generator option in ConfigDict. It has no public replacement yet, so this recipe flags its use for review.

Single recipepythonpydanticmigration2.10Proprietary

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.FindDeprecatedSchemaGenerator

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

mod config recipes pip install openrewrite-migrate-python