The Wire ยท Showcase
PYDANTIC TACKLES CORE SCHEMA PERFORMANCE WHILE FASTAPI DOCS GET A UI FIX
By RepoJournal ยท Filed ยท About FastAPI & Pydantic
Pydantic shipped optimizations that cut type lookup overhead in core schema generation, while both FastAPI and SQLModel standardized their documentation controls across 13 commits and 17 PRs overnight.
Pydantic's type dispatch layer just got faster. A new optimization [1] "takes the proper steps at decomposing the arbitrary annotation passed to generate_schema()" to avoid repeated calls to get_origin() and type comparison operations that were burning CPU cycles on every schema build. This is lean performance work that doesn't ship new APIs, just makes the existing ones snap. Meanwhile, Viicos landed three other wins: EllipsisType support [2] for better annotation handling, validator reuse when plugins are set [4] so you don't pay double, and a fix for ValidateAs serialization [5]. On the FastAPI side, tiangolo converted Termynal terminal controls from links to semantic buttons [3], which kills the external-link icon spam in docs and gives you proper hover feedback. The same fix landed in SQLModel [7]. Both codebases also cycled through GitHub Actions updates, bumping setup-python to 7.0.0 and uv tooling [6] [8], plus aiohttp patched from 3.14.1 to 3.14.3 in Pydantic's deps [9].
One email a day. Unsubscribe in one click.
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. Read a past issue โ
Action items
- โ Rebuild your Pydantic models to benefit from core schema generation speedup pydantic/pydantic [plan]
- โ Review your custom validators if you use Pydantic plugins; reuse is now unblocked pydantic/pydantic [plan]
- โ Check FastAPI and SQLModel docs locally for Termynal button styling after pulling latest fastapi/fastapi [monitor]
References
- [1] Optimize type lookup logic in core schema generation โ pydantic/pydantic
- [2] Add support for `EllipsisType` โ pydantic/pydantic
- [3] ๐ Use buttons for Termynal controls โ fastapi/fastapi
- [4] Allow reuse of validators when plugins are set โ pydantic/pydantic
- [5] Fix serialization of `ValidateAs` (#13487) pydantic/pydantic
- [6] โฌ Bump the github-actions group with 6 updates โ fastapi/fastapi
- [7] ๐ Use buttons for Termynal controls โ tiangolo/sqlmodel
- [8] โฌ Bump the github-actions group with 5 updates โ tiangolo/sqlmodel
- [9] Bump aiohttp from 3.14.1 to 3.14.3 โ pydantic/pydantic