Skip to content

Pydantic 'alias' bug #1379

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Pydantic 'alias' bug #1379

wants to merge 2 commits into from

Conversation

STocidlowski
Copy link

@STocidlowski STocidlowski commented May 14, 2025

bug

/This workaround fixes Pydantic serialization/deserialization while not modifying the internal alias logic. I cannot figure out why alias is not being passed through anymore.

For example, I was needing to add schema_extra with these key values in order to read/write data from a Json

https://docs.pydantic.dev/latest/concepts/fields/#field-aliases
#290

Thank you for your consideration.

STocidlowski and others added 2 commits May 14, 2025 12:40
This workaround fixes Pydantic serialization/deserialization while not modifying the internal alias logic. I cannot figure out why alias is not being passed through anymore.

For example, I was needing to add schema_extra with these key values in order to read data from a Json with different field names.

Thank you for your consideration.
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.

1 participant