$ the-wire · showcase
Two new pydantic core schemas, counter and ordered-dict
By RepoJournal · Filed · About FastAPI & Pydantic · Composed from the cited sources · methodology
Viicos landed counter and ordered-dict core schemas so constraints apply properly to each, resolving a long-standing constraint gap that surfaced first in a BeforeValidator reference bug.
Add a `counter` core schema pydantic/pydantic
Viicos added a counter core schema that makes constraints apply properly to counter-typed fields, closing issue 13704 and completing work started in the earlier schema refactors. It is the headline change of the set, and the most likely to alter how constrained counters validate.
Add an `ordered-dict` core schema pydantic/pydantic
The ordered-dict core schema follows the same path as the counter work, extending proper constraint handling to ordered-dict fields. If you rely on constrained ordered mappings, this is the schema change that touches you.
Fix `BeforeValidator` reference pointing at `AfterValidator` (#13828) pydantic/pydantic
simpleqt corrected a docstring reference where BeforeValidator was pointing at AfterValidator, a pure documentation fix with no runtime behavior change.