RepoJournal
FastAPI & Pydantic FastAPI & Pydantic
93 wires and counting

$ follow FastAPI & Pydantic

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

or

fair warning: these emails are deeply technical. diffs, version numbers, CVEs, benchmark deltas. if that's not your idea of a good read, this isn't your newsletter.

Folds into your digest — weekly by default, monthly if you prefer. Unsubscribe in one click.

$ status

wire 2026-06-30
stories 23

© 2026 RepoJournal Home Showcase Explore How it works Privacy

$ the-wire · showcase

FASTAPI TIGHTENS STATIC FILE HANDLING, PYDANTIC ADDS FRACTION SUPPORT

By RepoJournal · Filed · About FastAPI & Pydantic · Composed from the cited sources · methodology

FastAPI 0.138.2 shipped with stricter HTTP method validation for static file routes, while Pydantic cleared a major type system gap by adding native Fraction support.

FastAPI released 0.138.2 [2] with a critical refactor to its frontend static file handler. The `app.frontend()` method now returns 404 for any HTTP method other than GET or HEAD when no static file matches [1]. This closes a gap where POST, PUT, and DELETE requests could leak information about your static file structure. It's a quiet but important security posture improvement for any FastAPI app serving static assets.

On the Pydantic side, the team shipped support for Python's `Fraction` type in pydantic-core [3], resolving a long-standing gap in numeric type coverage. This wraps up months of discussion around non-standard numeric types and gives you first-class validation and serialization for fractional math without custom validators. If your domain model needs precise rational arithmetic, you can now declare it directly in your schema.

Pydantic also patched compatibility issues with pytest 9.1.0 [4], which introduced breaking changes to test discovery and deprecations that were silently ignored in older pytest versions. The team caught these before they became production friction. Additionally, a regression test landed for pickling behavior of generic models across modules [5], addressing issue #9390 and preventing future serialization regressions.

Minor sponsor housekeeping hit both repos overnight [6], [7], with no impact to functionality. The FastAPI team also added "agent skills" infrastructure [8] for future AI integration patterns, though details remain minimal.

Action items

References

  1. [1] ♻️ Make `app.frontend()` return 404 for methods other than `GET` or `HEAD` with no static file matches ↗ fastapi/fastapi
  2. [2] 0.138.2 ↗ fastapi/fastapi
  3. [3] Support `Fraction` type in `pydantic-core` ↗ pydantic/pydantic
  4. [4] Fix test failures with pytest >= 9.1.0 ↗ pydantic/pydantic
  5. [5] Add regression test for pickling behavior of generic models in different modules (#13367) ↗ pydantic/pydantic
  6. [6] 🔧 Update sponsors: remove Stainless (#15862) fastapi/fastapi ↗
  7. [7] 🔧 Update sponsors: remove Stainless ↗ fastapi/fastapi
  8. [8] Add agent skills ↗ pydantic/pydantic

Quick answers

What shipped in FastAPI & Pydantic on June 30, 2026?
FastAPI 0.138.2 shipped with stricter HTTP method validation for static file routes, while Pydantic cleared a major type system gap by adding native Fraction support. In total, 11 commits, 11 pull requests, and 1 releases landed.
Who contributed to FastAPI & Pydantic on June 30, 2026?
3 developers shipped this update, including tiangolo, Viicos, and cjwatson.
What were the notable FastAPI & Pydantic updates?
♻️ Make `app.frontend()` return 404 for methods other than `GET` or `HEAD` with no static file matches, 0.138.2, and Support `Fraction` type in `pydantic-core`.