Replace populate_by_name with validate_by_name
ProprietaryPydantic 2.11 introduced validate_by_name as the equivalent of populate_by_name, which is pending deprecation in Pydantic V3. Rename ConfigDict(populate_by_name=...) to ConfigDict(validate_by_name=...). This is behavior-preserving (validate_by_alias defaults to True) and future-proofs the configuration.
org. openrewrite. python. migrate. pydantic. ReplacePopulateByNameWithValidateByNamemod run . --recipe= org. openrewrite. python. migrate. pydantic. ReplacePopulateByNameWithValidateByNameInstall it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.