$ the-wire · showcase
PYDANTIC FIXES SERIALIZATION INFO EXCLUSION BUG
By RepoJournal · Filed · About FastAPI & Pydantic · Composed from the cited sources · methodology
Pydantic patched a critical gap in SerializationInfo.exclude_computed_fields population that was silently breaking field exclusion logic in serialization workflows.
Viicos merged a fix that restores proper population of SerializationInfo.exclude_computed_fields [1], addressing a regression where computed fields weren't being excluded as intended during serialization. The patch [2] targets the exact mechanism that controls field filtering, ensuring downstream code that depends on exclusion metadata gets the correct state. This landed alongside cleanup work, including a typo correction across test files [3] that improves test maintainability. The fix is narrow and focused, which means it's safe to pull into your next release without audit overhead.
Action items
- → Pin pydantic to the latest commit with SerializationInfo fix before shipping any serialization-heavy code pydantic/pydantic [plan]
- → Review your serialization pipelines to verify exclude_computed_fields is working as expected pydantic/pydantic [monitor]
References
- [1] Fix population of `SerializationInfo.exclude_computed_fields` (#13560) ↗ pydantic/pydantic
- [2] Fix population of `SerializationInfo.exclude_computed_fields` ↗ pydantic/pydantic
- [3] Correct typo in test comments ↗ pydantic/pydantic