The Wire · Showcase
PYDANTIC PATCHES JSON SCHEMA BUG AS FASTAPI SPONSORS EXPAND
By RepoJournal · Filed · About FastAPI & Pydantic
Pydantic fixed a critical issue where json_schema_extra dicts were silently dropped when followed by callables in Annotated types, a bug that could break schema generation in production.
The fix [1] restores proper handling of json_schema_extra configuration when mixed with callable validators, ensuring your schemas generate correctly. This was paired with a docstring cleanup [2] that removed duplicate parameter descriptions from TypeAdapter.json_schema, clearing up confusion for developers building custom serialization logic. On the infrastructure side, Pydantic's CI pipeline bumped actions/checkout to 7.0.0 [3], which now blocks potentially unsafe fork PR checkouts in pull_request_target workflows, a security hardening that matters if you run untrusted code in CI. The team also updated setup-uv to 8.2.0 [4], adding quiet mode and mirror configuration options for faster, leaner test runs. Over in FastAPI, the project onboarded TutorCruncher as a sponsor [5], signaling continued momentum for the framework's ecosystem.
Action items
- → Update to latest Pydantic if you use json_schema_extra with Annotated validators pydantic/pydantic [plan]
- → Review CI workflows for pull_request_target usage and upgrade actions/checkout pydantic/pydantic [monitor]
References
- [1] Fix `json_schema_extra` dict being dropped when a callable follows it in `Annotated` (#13374) pydantic/pydantic
- [2] Remove duplicated `schema_generator` and `mode` entries in `TypeAdapter.json_schema` docstring ↗ pydantic/pydantic
- [3] Bump actions/checkout from 6.0.2 to 7.0.0 ↗ pydantic/pydantic
- [4] Bump astral-sh/setup-uv from 8.1.0 to 8.2.0 ↗ pydantic/pydantic
- [5] 🔧 Update sponsors: add TutorCruncher (#15947) fastapi/fastapi
FAQ
- What changed in FastAPI & Pydantic on July 7, 2026?
- Pydantic fixed a critical issue where json_schema_extra dicts were silently dropped when followed by callables in Annotated types, a bug that could break schema generation in production.
- What should FastAPI & Pydantic teams do about it?
- Update to latest Pydantic if you use json_schema_extra with Annotated validators • Review CI workflows for pull_request_target usage and upgrade actions/checkout
- Which FastAPI & Pydantic repositories shipped on July 7, 2026?
- pydantic/pydantic, fastapi/fastapi