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 TIGHTENS STATIC FILE HANDLING, PYDANTIC ADDS FRACTION SUPPORT

By RepoJournal · Filed · About FastAPI & Pydantic

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.

One email a day. Unsubscribe in one click.

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`.

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?

We use privacy-friendly analytics (Google Analytics, IP-anonymized) to see which pages help readers. No ads, and we never sell your data. See our Privacy Policy.