Skip to content

Upgrading pydantic 0.24 to 0.25

Safe0.24 → 0.25New1Fixed1Other1

SafeUpgrade verdict

Only new features and fixes in this range.

  • Nothing in this range needs changes to your code. It adds features and fixes.
Nothing to change

No breaking, platform, security or deprecated items in this range.

Nothing in this upgrade needs a code or configuration change.

Generated by DepDelta from published Python source. Not mixed with prose notes.

  • added: class WrongConstantError(PydanticValueError)
  • added: field WrongConstantError.code
  • added: field WrongConstantError.msg_template
  • changed: constructor Schema(default: Any, *, alias: str=…, title: str=…, description: str=…, gt: float=…, ge: float=…, lt: float=…, le: float=…, multiple_of: float=…, min_length: int=…, max_length: int=…, regex: str=…, **extra: Any) -> None → constructor Schema(default: Any, *, alias: str=…, title: str=…, description: str=…, const: bool=…, gt: float=…, ge: float=…, lt: float=…, le: float=…, multiple_of: float=…, min_length: int=…, max_length: int=…, regex: str=…, **extra: Any) -> None
  • added: function constant_validator(v: Any, field: Field) -> Any