RepoJournal
FastAPI & Pydantic FastAPI & Pydantic
75 wires and counting

$ 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

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

One email a day. Unsubscribe in one click.

$ status

wire 2026-08-29
stories 28

ยฉ 2026 RepoJournal Home Showcase Explore How it works Privacy

$ the-wire ยท showcase

Pydantic 2.13.5 fixes GC, smart union counting; SQLModel deprecates min_items

By RepoJournal ยท Filed ยท About FastAPI & Pydantic

Pydantic 2.13.5 patches garbage collection and smart-union field counting while SQLModel aligns Field with Pydantic and starts deprecating min_items.

Pydantic shipped v2.13.5 (2026-08-28) with three fixes: validator reuse works again when plugins are set, missing GC traversal is fixed on some pydantic-core struct fields, and GeneralFieldsSerializer gets the same GC fix [1]. The same release includes a fix that counts successfully validated, explicitly supplied known fields once per input-specific helper in smart unions, correcting a regression where a smaller union member with a before validator could outrank a larger member using the plain JSON path [2]. Two release-infrastructure bumps landed: twine v7.0.0 and pypa/gh-action-pypi-publish to v1.14.2, the former needed because the previous twine rejected the wheel with "Invalid distribution metadata: '2.5' is not a valid metadata version" [3][4]. SQLModel deprecated the min_items and max_items parameters on Field, aligning with Pydantic's direction [5]. The discriminator parameter on Field now accepts pydantic.types.Discriminator (plus str and None), matching Pydantic's type hint, with tests added for a callable discriminator [6]. Docs work includes fixing "Decimals in SQLModel" to reference Field() instead of condecimal() and grammar/typo cleanups [7][8].

Action items

References

  1. [1] v2.13.5 โ†— pydantic/pydantic
  2. [2] Count validated model fields once in smart unions โ†— pydantic/pydantic
  3. [3] Bump twine to v7.0.0 โ†— pydantic/pydantic
  4. [4] Bump `pypa/gh-action-pypi-publish` action to v1.14.2 โ†— pydantic/pydantic
  5. [5] ๐Ÿ—‘๏ธ Deprecate `min_items` and `max_items` parameters of `Field` (#1731) โ†— tiangolo/sqlmodel
  6. [6] ๐Ÿท๏ธ Allow `Discriminator` type for `discriminator` parameter in `Field` โ†— tiangolo/sqlmodel
  7. [7] ๐Ÿ“ Fix "Decimals in SQLModel" to reference `Field()` instead of `condecimal()` (#2035) โ†— tiangolo/sqlmodel
  8. [8] โœ๏ธ Fix grammar and typos in docs (#2058) โ†— tiangolo/sqlmodel

Quick answers

What shipped in FastAPI & Pydantic on August 29, 2026?
Pydantic 2.13.5 patches garbage collection and smart-union field counting while SQLModel aligns Field with Pydantic and starts deprecating min_items. In total, 14 commits, 10 pull requests, and 4 releases landed.
Who contributed to FastAPI & Pydantic on August 29, 2026?
4 developers shipped this update, including Yurii Motov, Anas Khan, tamird, and Viicos.
What were the notable FastAPI & Pydantic updates?
v2.13.5, Count validated model fields once in smart unions, and Bump twine to v7.0.0.