$ the-wire · showcase
Pydantic tightens timedelta and Decimal validation
By RepoJournal · Filed · About FastAPI & Pydantic · Composed from the cited sources · methodology
Two pydantic validation gaps closed on the same day: out-of-range integers headed for timedelta and oversized whole parts headed for Decimal now fail where they previously slipped through.
Reject out-of-range int inputs for `timedelta` pydantic/pydantic
Viicos landed the fix, which only resolves the issue and carries no behavior summary, so treat the merge as the signal and read the diff before assuming how your integer inputs are handled. It targets the same reporter complaint as the Decimal validator work; that one shipped already and this one is still a pull request.
Enforce the `max_digits` whole-digits limit in the Python `Decimal` validator pydantic/pydantic
Viicos' broader change enforces the max_digits whole-digit limit inside the Python Decimal validator, where previously the constraint was applied elsewhere and the Python path let the limit slide. If you validate decimals with a Python fallback rather than the compiled core, a value that used to pass now raises.