Skip to content

Conversation

sandre35
Copy link
Contributor

Description

  • This PR aims to fix alias generation. This is due to populate_by_name config attribute being deprecated by Pydantic from version 2.11

Closes

Closes #717

@sandre35 sandre35 requested a review from vkcku as a code owner June 27, 2025 09:59
@sandre35 sandre35 changed the title Pydantic Factory alias generation from version 2.11 fix: Pydantic Factory alias generation from version 2.11 Jun 27, 2025
Copy link
Collaborator

@adhtruong adhtruong left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This would be a backwards breaking change. Can both alias be support both names until a major release is made to explicitly drop support for current config name?

@sandre35 sandre35 force-pushed the factory_alias_generation branch 2 times, most recently from cba20d6 to c9149f9 Compare September 9, 2025 08:42
@sandre35 sandre35 requested a review from adhtruong September 9, 2025 08:42
@sandre35 sandre35 force-pushed the factory_alias_generation branch from c9149f9 to 72c6ad4 Compare September 9, 2025 08:43
Copy link

github-actions bot commented Sep 9, 2025

Documentation preview will be available shortly at https://litestar-org.github.io/polyfactory-docs-preview/718

Copy link
Collaborator

@adhtruong adhtruong left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for updating!

@adhtruong adhtruong merged commit 0358ad0 into litestar-org:main Sep 14, 2025
24 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bug: Pydantic factories using deprecated "populate_by_name" to determine alias usage
2 participants