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

FASTAPI DITCHES DEPENDENCY FLATTENING, CUTS OPENAPI GENERATION BLOAT

By RepoJournal · Filed · About FastAPI & Pydantic

FastAPI is ripping out the dependency tree flattening that bloated OpenAPI schema generation, replacing it with direct graph traversal that preserves order and skips duplicates without the synthetic overhead.

Tiangolo shipped the one-two punch this cycle: benchmarks first [1], then the refactor [2]. The old code built massive synthetic dependency trees just to extract parameter and security metadata for OpenAPI, then threw them away. The new approach walks each route's dependency graph directly, collecting only what OpenAPI actually needs. Duplicate skipping and OAuth scope inheritance work without the extra object churn. On the back of this, the lru_cache for dependency resolution bumped up [3] to handle apps with more than 1024 dependencies, a problem real users hit. Memory profiling infrastructure landed too [4], so regressions get caught early. Over in SQLModel, the latest-changes action upgraded [5] to 0.7.1, cleaning up redundant workflow config. Pydantic's crew fixed URL comparison semantics [6] to return NotImplemented instead of False when comparing different types, which was breaking sort order logic. Annotation access in Python 3.13 got patched [8], and grammar fixes landed in ValidationError JSON [7], [9].

One email a day. Unsubscribe in one click.

Action items

References

  1. [1] 👷 Add OpenAPI dependency benchmarks ↗ fastapi/fastapi
  2. [2] ⚡️ Avoid flattening dependencies for OpenAPI ↗ fastapi/fastapi
  3. [3] ♻️ Update the lru_cache limit for dependencies to account for large apps ↗ fastapi/fastapi
  4. [4] 👷 Add new memory benchmark ↗ fastapi/fastapi
  5. [5] ⬆️ Upgrade latest-changes to 0.7.1 ↗ tiangolo/sqlmodel
  6. [6] Return `NotImplemented` from URL ordering comparisons with foreign types ↗ pydantic/pydantic
  7. [7] Fix grammar in ValidationError JSON description (#13531) pydantic/pydantic
  8. [8] Fix access of annotations in `safe_get_annotations()` in Python <= 3.13 (#13521) pydantic/pydantic
  9. [9] Fix grammar in ValidationError JSON description ↗ pydantic/pydantic

Quick answers

What shipped in FastAPI & Pydantic on July 28, 2026?
FastAPI is ripping out the dependency tree flattening that bloated OpenAPI schema generation, replacing it with direct graph traversal that preserves order and skips duplicates without the synthetic overhead. In total, 22 commits, 23 pull requests, and 7 releases landed.
Who contributed to FastAPI & Pydantic on July 28, 2026?
5 developers shipped this update, including tiangolo, dependabot, chinesepowered, Dhruva Kumar, and Victorien.
What were the notable FastAPI & Pydantic updates?
👷 Add OpenAPI dependency benchmarks, ⚡️ Avoid flattening dependencies for OpenAPI, and ♻️ Update the lru_cache limit for dependencies to account for large apps.

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?