RepoJournal
FastAPI & Pydantic

FastAPI & Pydantic

FastAPI and the Pydantic + SQLModel async-Python stack

Keep up with FastAPI & Pydantic in about 3 minutes a day: what actually shipped — the commits, pull requests, releases, and security advisories that matter.

One email a day. Unsubscribe in one click.

Pick a date

Topics: Python Full archive →

The Wire · Showcase

PYDANTIC PATCHES GARBAGE COLLECTION LEAKS IN CORE STRUCTS

By RepoJournal · Filed · About FastAPI & Pydantic

Pydantic shipped fixes for missing GC traversal on pydantic-core struct fields that could cause memory leaks in long-running applications.

The core issue surfaces in two places: missing GC traversal on some pydantic-core struct fields [1] and a separate traversal gap in GeneralFieldsSerializer [2]. Both fixes are shipping in the same window, so upgrade together. On the FastAPI side, Yurii Motov corrected a workflow configuration error where the zizmor.yml file referenced the wrong default branch [4], a small fix but the kind that breaks CI silently if missed. Pydantic also landed a JSON schema fix for bool discriminators [3] that normalizes mapping keys to proper JSON representation (lowercase true/false instead of Python-style True/False), ensuring OpenAPI compatibility. The Pydantic fixes address both memory safety and spec compliance in a single push.

One email a day. Unsubscribe in one click.

Action items

References

  1. [1] Fix missing GC traversal on some `pydantic-core` struct fields ↗ pydantic/pydantic
  2. [2] Fix missing GC traversal in `pydantic-core` for `GeneralFieldsSerializer` (#13629) pydantic/pydantic
  3. [3] Fix JSON schema discriminator mapping keys for `bool` discriminators ↗ pydantic/pydantic
  4. [4] 👷 Fix branch name in `zizmor.yml` workflow (`main` -> `master`) (#16178) fastapi/fastapi

Quick answers

What shipped in FastAPI & Pydantic on August 12, 2026?
Pydantic shipped fixes for missing GC traversal on pydantic-core struct fields that could cause memory leaks in long-running applications. In total, 5 commits and 4 pull requests landed.
Who contributed to FastAPI & Pydantic on August 12, 2026?
4 developers shipped this update, including Yurii Motov, latest-changes[bot], Viicos, and remi-fongaufier.
What were the notable FastAPI & Pydantic updates?
Fix missing GC traversal on some `pydantic-core` struct fields, Fix missing GC traversal in `pydantic-core` for `GeneralFieldsSerializer` (#13629), and Fix JSON schema discriminator mapping keys for `bool` discriminators.

More from FastAPI & Pydantic

Daily updates, in your inbox

Follow FastAPI & Pydantic

Keep up with FastAPI & Pydantic in about 3 minutes a day: what actually shipped — the commits, pull requests, releases, and security advisories that matter.

or

One email a day. Unsubscribe in one click. Read a past issue →

Elsewhere on the wire

Want every project, not just this one?