RepoJournal
FastAPI & Pydantic

FastAPI & Pydantic

FastAPI and the Pydantic + SQLModel async-Python stack

Pick a date

The Wire ยท Showcase

FASTAPI REWIRES ROUTER INTERNALS, UNBLOCKS MAJOR FEATURES

By RepoJournal ยท Filed ยท About FastAPI & Pydantic

FastAPI 0.137.0 shipped overnight with a breaking refactor that finally preserves APIRouter instances instead of cloning them on include_router calls.

This is the architectural fix the team has been chasing for years [1]. Before this release, every time you called `router.include_router(other_router)`, FastAPI would disassemble each path operation and rebuild it from scratch, collapsing your entire dependency graph into a single flat router [2]. That's gone now. The refactor preserves the original router and route instances through the include chain, which unblocks middleware at the router level, better performance on large apps with dozens of subrouters, and cleaner introspection tools. The breaking change here is real but surgical: if you're reaching into router internals to inspect or modify routes after include_router, your code will break. Most teams won't notice. But if you've built custom tooling around the old flat structure, audit your code before upgrading [3]. The release notes are still being finalized [4], so check the PR diffs for specifics before deploying to production.

Action items

References

  1. [1] 0.137.0 โ†— fastapi/fastapi
  2. [2] โ™ป๏ธ Refactor internals to preserve `APIRouter` and `APIRoute` instances โ†— fastapi/fastapi
  3. [3] ๐Ÿ”– Release version 0.137.0 โ†— fastapi/fastapi
  4. [4] ๐Ÿ“ Update release notes โ†— fastapi/fastapi

FAQ

What changed in FastAPI & Pydantic on June 15, 2026?
FastAPI 0.137.0 shipped overnight with a breaking refactor that finally preserves APIRouter instances instead of cloning them on include_router calls.
What should FastAPI & Pydantic teams do about it?
Review custom router inspection code for breaking changes before upgrading to 0.137.0 โ€ข Stage 0.137.0 in dev environment if you use include_router with multiple levels of nesting โ€ข Watch the release notes PR for final documentation on the refactor
Which FastAPI & Pydantic repositories shipped on June 15, 2026?
fastapi/fastapi

Related across the cluster

For your repos

The showcase is a teaser.
Your wire is the product.

Same engine. Different stack. Below: what changes when the wire is yours.

Showcase wire

  • โ€ข14 famous open source orgs
  • โ€ขOne wire per day
  • โ€ขPublic, generic
  • โ€ขRead on the web, when you remember

Your wire

  • โ†’Up to 1,500 of your repos - orgs, deps, vendors
  • โ†’Morning and evening briefs
  • โ†’Action items routed to your team
  • โ†’Slack delivery, email, breaking-news CVE alerts

Want a hands-on demo first? Ask a current user for an invite link.