Replace populate_by_name with validate_by_name

Proprietary

Pydantic 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.ReplacePopulateByNameWithValidateByName
mod run . --recipe=org.openrewrite.python.migrate.pydantic.ReplacePopulateByNameWithValidateByName

Install it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.