$ the-wire · showcase
Pydantic caches fixed core schemas, and its schema path skips dispatch for builtin scalars
By RepoJournal · Filed · About FastAPI & Pydantic · Composed from the cited sources · methodology
Pydantic reworked how it builds core schemas for its fixed set of types, caching the immutable templates instead of rebuilding them, while everything else on the wire was dependency bumps, translation refreshes, and test cleanup.
Improve schema generation for fixed type handlers pydantic/pydantic
Alex Mojaki's change builds the no-argument core schemas for builtin scalars, object, date/time types, Decimal, UUID, Url, Fraction, MultiHostUrl, the missing and ellipsis sentinels, and Callable once, then returns a fresh shallow copy from the existing direct type handlers. The returned dicts stay independent, so downstream metadata, validators, and serialization are unaffected.
Skip general schema dispatch for builtin scalars pydantic/pydantic
On top of the cached templates, exact immutable types now bypass origin lookup, schema-hook inspection, and general dispatch in GenerateSchema.generate_schema() and _apply_annotations.inner_handler(). JSON encoders, field transforms, metadata, validators, and serializers are preserved, and there are no union-specific changes.
Remove redundant None check in union schema generation (#14145) pydantic/pydantic
A small cleanup from the same author drops the redundant None check in union schema generation, which is the one part of the schema path the two larger PRs deliberately left alone.
Bump Ruff to 0.17.3 pydantic/pydantic
Ruff moves to 0.17.3 with the new rules enabled, and the pass fixes issue 14183 along the way.
⬆ Bump the python-packages group across 1 directory with 9 updates tiangolo/sqlmodel
Dependabot's group bump moves pydantic 2.13.5 to 2.14.1 in SQLModel's dev tooling, alongside black, typer, zensical, and alembic; a second PR covers sqlalchemy 2.0.54 to 2.0.55 and 2.1.3 to 2.1.6, and the rest of the day was translation refreshes for the zh-hant, uk, de, and pt FastAPI docs, an unused V1 validator test helper removal, and GitHub Actions bumps.