pydantic breaking changes
Updated December 4, 2026
On this page
Latest version 2.14.4, released November 19, 2026. Source repository
Its 2.14.0 release drops Python 3.9. Python end of life dates.
- From 1.10.27 to 2.14.4: 1,746 breaking changes in 52 versions.
- From 0.32 to 2.14.4: 2,016 breaking changes in 59 versions.
pydantic 2.14.4 breaking changes
- Behavior changed
Subclasses of @deprecated classes are no longer marked as deprecated in the generated JSON Schema. Code that relies on that marker in schema output should be checked. github.com - Behavior changed
Passing strict=True at validation time is now enforced for complex values, so inputs that were previously accepted in strict mode may now be rejected. github.com
pydantic 2.14.3 breaking changes
- Removed
Pydantic no longer publishes GraalPy 3.11 wheels; GraalPy 3.13 wheels are now published alongside the existing 3.12 wheel. Users on GraalPy 3.11 need another install path or a different interpreter. github.com - Behavior changed
Validation now refuses extra keys that are not strings, so input data with non-string extra keys that previously passed will now fail. github.com
pydantic 2.14.2 breaking changes
- Behavior changed
Keys that match only an unused alias or field name are now treated as extra data instead of being silently dropped, so models with extra='forbid' may now raise ValidationError. Review inputs or extra handling. github.com - Behavior changed
The max_length constraint on mappings is now enforced during validation, so mappings that were previously accepted may now fail validation. github.com - Behavior changed
Extra input keys that match a field name are now ignored for TypedDict and dataclasses with extra=allow, so they no longer appear as extra data. github.com - Signature changed
pydantic.BaseModel.model_json_schema
Was @classmethod def model_json_schema(cls, by_alias: bool = True, ref_template: str = DEFAULT_REF_TEMPLATE, schema_generator: type[GenerateJsonSchema] = GenerateJsonSchema, mode: JsonSchemaMode = 'validation', *, union_format... pypi.org - Signature changed
pydantic.json_schema.GenerateJsonSchema.__init__
Was def __init__(self, by_alias: bool = True, ref_template: str = DEFAULT_REF_TEMPLATE, union_format: Literal['any_of', 'primitive_type_array'] = 'any_of') -> None; now def __init__(self, by_alias: bool | None = None, ref_template: str =... pypi.org - Signature changed
pydantic.json_schema.model_json_schema
Was def model_json_schema(cls: type[BaseModel] | type[PydanticDataclass], by_alias: bool = True, ref_template: str = DEFAULT_REF_TEMPLATE, union_format: Literal['any_of', 'primitive_type_array'] = 'any_of', schema_generator... pypi.org - Signature changed
pydantic.json_schema.models_json_schema
Was def models_json_schema(models: Sequence[tuple[type[BaseModel] | type[PydanticDataclass], JsonSchemaMode]], *, by_alias: bool = True, title: str | None = None, description: str | None = None, ref_template: str = DEFAULT_REF_TEMPLATE... pypi.org - Signature changed
pydantic.TypeAdapter.json_schema
Was def json_schema(self, *, by_alias: bool = True, ref_template: str = DEFAULT_REF_TEMPLATE, union_format: Literal['any_of', 'primitive_type_array'] = 'any_of', schema_generator: type[GenerateJsonSchema] = GenerateJsonSchema, mode... pypi.org - Signature changed
pydantic.TypeAdapter.json_schemas
Was @staticmethod def json_schemas(inputs: Iterable[tuple[JsonSchemaKeyT, JsonSchemaMode, TypeAdapter[Any]]], /, *, by_alias: bool = True, title: str | None = None, description: str | None = None, ref_template: str = DEFAULT_REF_TEMPLATE... pypi.org
pydantic 2.14.1 breaking changes
- Behavior changed
Out-of-range integer inputs for timedelta fields, which were previously accepted, are now rejected. github.com - Behavior changed
Decimal inputs with too many whole digits, which were previously accepted, are now rejected. Check that inputs respect max_digits. github.com
pydantic 2.14.0 breaking changes
- Removed
Python 3.9 support is dropped in this release; upgrade Python to 3.10 or later. github.com - Removed
pydantic.json_schema.PydanticSchemaGenerationError
pydantic.json_schema.PydanticSchemaGenerationError was removed in pydantic 2.14.0 pypi.org - Behavior changed
Field
init and kw_only=False from Field() now propagate to stdlib dataclass fields. github.com - Behavior changed
JSON Schema defaults
JSON Schema defaults are now encoded with a consistent configuration, which can change generated output. github.com - Behavior changed
multiple_of
multiple_of constraints must now be positive; non-positive values are rejected. github.com - Behavior changed
NameEmail
NameEmail validation now rejects values containing newlines. github.com - Signature changed
pydantic.BaseModel.__class_getitem__
Was def __class_getitem__(cls, typevar_values: type[Any] | tuple[type[Any], ...]) -> type[BaseModel] | _forward_ref.PydanticRecursiveRef; now def __class_getitem__(cls, typevar_values: TypeForm[Any] | tuple[TypeForm[Any], ...]) ->... pypi.org - Signature changed
pydantic.BaseModel.model_parametrized_name
Was @classmethod def model_parametrized_name(cls, params: tuple[type[Any], ...]) -> str; now @classmethod def model_parametrized_name(cls, params: tuple[TypeForm[Any], ...]) -> str. pypi.org - Signature changed
pydantic.create_model
Was def create_model(model_name: str, /, *, __config__: ConfigDict | None = None, __doc__: str | None = None, __base__: type[ModelT] | tuple[type[ModelT], ...] | None = None, __module__: str | None = None, __validators__: dict[str... pypi.org - Signature changed
pydantic.field_serializer
Was def field_serializer(field: str, /, *fields: str, mode: Literal['plain', 'wrap'] = 'plain', return_type: Any = PydanticUndefined, when_used: WhenUsed = 'always', check_fields: bool | None = None) -> Callable[[_FieldWrapSerializerT]... pypi.org
And 11 more in this version. Sign up to see every change
pydantic 2.14.0b2 breaking changes
- Behavior changed
JSON Schema generation
JSON Schema output now reflects ser_json_temporal, str_min_length/str_max_length and TypeAdapter config, which changes generated schemas. github.com - Behavior changed
MISSING
Validation errors no longer mention MISSING as a valid value. github.com
Older versions
54 older versions, each with its first changes. Sign up to see every change
Show 54 older versions
pydantic 2.14.0b1 breaking changes
- Behavior changed
SecretStr
SecretStr and SecretBytes equality now uses constant-time comparison. github.com
pydantic 2.14.0a1 breaking changes
- Removed
Python 3.9 is no longer supported; upgrade the Python interpreter before using this release. github.com - Removed
eval_type_backport
The eval_type_backport() support was removed; stop relying on it. github.com
And 1 more in this version.
pydantic 2.13.0 breaking changes
- Behavior changed
A serialization warning is now emitted for fixed-length tuples with too few items. github.com - Signature changed
pydantic.BaseModel.model_dump
Was def model_dump(self, *, mode: Literal['json', 'python'] | str = 'python', include: IncEx | None = None, exclude: IncEx | None = None, context: Any | None = None, by_alias: bool | None = None, exclude_unset: bool = False... pypi.org
And 12 more in this version.
pydantic 2.13.0b3 breaking changes
- Behavior changed
When the discriminator-selected variant fails to serialize, pydantic no longer tries all union members. github.com - Behavior changed
model_fields_set
Extra fields assigned after initialization now appear in model_fields_set, changing its contents. github.com
And 1 more in this version.
pydantic 2.13.0b1 breaking changes
- Behavior changed
Only affects building the package from source, not runtime use. github.com - Behavior changed
field_serializer
Serializer behavior now follows the validator logic, which may change how existing serializers are applied. github.com
And 2 more in this version.
pydantic 2.12.4 breaking changes
- Behavior changed
AnyUrl.build
The build() method of the AnyUrl and Dsn types no longer percent-encodes credentials; the 2.12.3 encoding change was reverted. Code relying on the encoded output must be updated, and an opt-in encoding option is planned for a later release. github.com - Behavior changed
exclude_if
Fields that use exclude_if are no longer listed as required in generated JSON Schema. Code that checks the generated schema's required list may need updating. github.com
pydantic 2.12.0 breaking changes
- Removed
pydantic.experimental.PydanticExperimentalWarning
pydantic.experimental.PydanticExperimentalWarning was removed in pydantic 2.12.0 pypi.org - Signature changed
pydantic.AllowInfNan.__pretty__
Was def __pretty__(self, fmt: typing.Callable[[Any], Any], **kwargs: Any) -> typing.Generator[Any, None, None]; now def __pretty__(self, fmt: Callable[[Any], Any], **kwargs: Any) -> Generator[Any]. pypi.org
And 30 more in this version.
pydantic 2.12.0b1 breaking changes
- Behavior changed
Pydantic now raises an error at import if an incompatible pydantic-core version is installed, so environments with mismatched versions will fail to start. github.com
pydantic 2.12.0a1 breaking changes
- Behavior changed
Decimal constraints are no longer coerced to another type, so code relying on the coercion may see different validation results. github.com
pydantic 2.11.4 breaking changes
- Behavior changed
Decimal field constraints are no longer coerced, so code that relied on coercion may now see different validation results. github.com
pydantic 2.11.3 breaking changes
- Signature changed
pydantic.v1.utils.validate_field_name
Was def validate_field_name(bases: List[Type[BaseModel]], field_name: str) -> None; now def validate_field_name(bases: Iterable[Type[Any]], field_name: str) -> None. pypi.org
pydantic 2.11.2 breaking changes
- Signature changed
pydantic.mypy.PydanticModelField.expand_type
Was def expand_type(self, current_info: TypeInfo, api: SemanticAnalyzerPluginInterface, force_typevars_invariant: bool = False) -> Type | None; now def expand_type(self, current_info: TypeInfo, api: SemanticAnalyzerPluginInterface... pypi.org
pydantic 2.11.0 breaking changes
- Removed
The release drops Python 3.8. Users on Python 3.8 must stay on an older Pydantic version or upgrade Python. github.com - Behavior changed
BaseModel.__replace__
The __replace__ definition is hidden from type checkers. Code relying on it in static type checking may change. github.com
And 23 more in this version.
pydantic 2.11.0b1 breaking changes
- Behavior changed
Core schema generation for path types moved; the release notes flag this as a breaking change for users relying on path type behavior. github.com - Behavior changed
An underscore-prefixed Final attribute with a default is now a private attribute rather than a class variable; use ClassVar to keep the old behavior. github.com
And 1 more in this version.
pydantic 2.11.0a1 breaking changes
- Removed
Python 3.8 is no longer supported; upgrade the interpreter to a supported version. github.com
pydantic 2.10.6 breaking changes
- Signature changed
pydantic.AnyUrl.serialize_url
Was @classmethod def serialize_url(cls, url: Any) -> str; now @classmethod def serialize_url(cls, url: Any, info: core_schema.SerializationInfo) -> str | Self. pypi.org - Signature changed
pydantic.NatsDsn.serialize_url
Was @classmethod def serialize_url(cls, url: Any) -> str; now @classmethod def serialize_url(cls, url: Any, info: core_schema.SerializationInfo) -> str | Self. pypi.org
And 1 more in this version.
pydantic 2.10.3 breaking changes
- Behavior changed
URL validation again requires a host, matching v2.9. Code that relied on host-less URLs passing validation in 2.10.2 must now supply a host. github.com - Signature changed
pydantic.AnyUrl.host
Was host: str; now host: str | None. pypi.org
pydantic 2.10.1 breaking changes
- Removed
pydantic.UrlConstraints.__pretty__
UrlConstraints.__pretty__ was removed in pydantic 2.10.1 pypi.org - Removed
pydantic.UrlConstraints.__repr__
UrlConstraints.__repr__ was removed in pydantic 2.10.1 pypi.org
And 8 more in this version.
pydantic 2.10.0 breaking changes
- Removed
pydantic.ConfigDict.experimental_defer_build_mode
ConfigDict.experimental_defer_build_mode was removed in pydantic 2.10.0 pypi.org - Removed
pydantic.EncodedStr.decode
EncodedStr.decode was removed in pydantic 2.10.0 pypi.org
And 50 more in this version.
pydantic 2.9.1 breaking changes
- Configuration changed
tzdata is no longer a required install dependency and is available through an optional timezone extra. Code that relied on tzdata being installed transitively must install it or the timezone extra explicitly. github.com - Signature changed
pydantic.BaseModel.dict
Was def dict(self, *, include: IncEx = None, exclude: IncEx = None, by_alias: bool = False, exclude_unset: bool = False, exclude_defaults: bool = False, exclude_none: bool = False) -> Dict[str, Any]; now def dict(self, *, include: IncEx |... pypi.org
And 7 more in this version.
pydantic 2.9.0 breaking changes
- Removed
pydantic.functional_serializers.FuncType
pydantic.functional_serializers.FuncType was removed in pydantic 2.9.0 pypi.org - Removed
pydantic.json_schema.GenerateJsonSchema.ValidationsMapping.date
pydantic.json_schema.GenerateJsonSchema.ValidationsMapping.date was removed in pydantic 2.9.0 pypi.org
And 31 more in this version.
pydantic 2.9.0b2 breaking changes
- Behavior changed
Model validators that do not return self now trigger a helpful warning; code not returning self should be updated. github.com
pydantic 2.9.0b1 breaking changes
- Removed
initial_metadata
The initial_metadata value was removed from the internal metadata construct. github.com - Removed
typed_dict_cls
The typed_dict_cls data was removed from CoreMetadata. github.com
And 1 more in this version.
pydantic 2.8.2 breaking changes
- Signature changed
pydantic.BaseModel.__pydantic_validator__
Was __pydantic_validator__: SchemaValidator; now __pydantic_validator__: SchemaValidator | PluggableSchemaValidator. pypi.org - Signature changed
pydantic.json_schema.PydanticDataclass.__pydantic_validator__
Was __pydantic_validator__: SchemaValidator; now __pydantic_validator__: SchemaValidator | PluggableSchemaValidator. pypi.org
And 2 more in this version.
pydantic 2.8.1 breaking changes
- Behavior changed
to_snake
to_snake behaves differently from 2.8.0 again, matching 2.7. Code that adjusted to the 2.8.0 output must be checked. github.com
pydantic 2.8.0 breaking changes
- Signature changed
pydantic.BaseModel.__copy__
Was def __copy__(self: Model) -> Model; now def __copy__(self) -> Self. pypi.org - Signature changed
pydantic.BaseModel.__deepcopy__
Was def __deepcopy__(self: Model, memo: dict[int, Any] | None = None) -> Model; now def __deepcopy__(self, memo: dict[int, Any] | None = None) -> Self. pypi.org
And 27 more in this version.
pydantic 2.7.4 breaking changes
- Removed
pydantic.v1.v1
pydantic.v1.v1 was removed in pydantic 2.7.4 pypi.org
pydantic 2.7.1 breaking changes
- Behavior changed
RootModel
RootModel's generated JSON schema description now comes from the field description when the description is set to an ellipsis. Code that depends on the previous schema text may see a different result. github.com
pydantic 2.7.0 breaking changes
- Removed
pydantic.fields.AliasChoices
pydantic.fields.AliasChoices was removed in pydantic 2.7.0 pypi.org - Removed
pydantic.fields.AliasPath
pydantic.fields.AliasPath was removed in pydantic 2.7.0 pypi.org
And 41 more in this version.
pydantic 2.6.4 breaking changes
- Signature changed
pydantic.mypy.PydanticModelField.expand_type
Was def expand_type(self, current_info: TypeInfo) -> Type | None; now def expand_type(self, current_info: TypeInfo, api: SemanticAnalyzerPluginInterface) -> Type | None. pypi.org - Signature changed
pydantic.mypy.PydanticModelField.to_argument
Was def to_argument(self, current_info: TypeInfo, typed: bool, force_optional: bool, use_alias: bool) -> Argument; now def to_argument(self, current_info: TypeInfo, typed: bool, force_optional: bool, use_alias: bool, api... pypi.org
And 2 more in this version.
pydantic 2.6.0 breaking changes
- Removed
Python 3.7 is no longer supported, so code must run on a newer Python version. github.com - Removed
pydantic.mypy.PydanticModelTransformer.collect_field_from_stmt
PydanticModelTransformer.collect_field_from_stmt was removed in pydantic 2.6.0 pypi.org
And 23 more in this version.
pydantic 2.5.0 breaking changes
- Renamed
CallableDiscriminator
CallableDiscriminator was renamed to Discriminator. Update imports and uses to the new name. github.com - Renamed
pydantic.validate_call.validate_call
Use pydantic.validate_call_decorator.validate_call instead. pypi.org
And 21 more in this version.
pydantic 2.4.1 breaking changes
- Behavior changed
Serialization of unsubstituted type variables now produces Any rather than their previous output, so code relying on the old serialized form may see different results. github.com
pydantic 2.4.0 breaking changes
- Removed
pydantic.config.BaseConfig
Use pydantic.ConfigDict instead. pypi.org - Removed
pydantic.config.Extra
pydantic.config.Extra was removed in pydantic 2.4.0 pypi.org
And 52 more in this version.
pydantic 2.3.0 breaking changes
- Signature changed
pydantic.functional_validators.ModelWrapValidator
Was class ModelWrapValidator(Protocol); now class ModelWrapValidator(Protocol[_ModelType]). pypi.org - Signature changed
pydantic.functional_validators.ModelWrapValidatorWithoutInfo
Was class ModelWrapValidatorWithoutInfo(Protocol); now class ModelWrapValidatorWithoutInfo(Protocol[_ModelType]). pypi.org
pydantic 2.2.1 breaking changes
- Signature changed
pydantic.RootModel.__init_subclass__
Was def __init_subclass__(cls, **kwargs: Unpack[ConfigDict]); now def __init_subclass__(cls, **kwargs). pypi.org
pydantic 2.2.0 breaking changes
- Removed
pydantic.fields.FieldInfo.include
Field.include is deprecated in this release. Stop relying on it; the document gives no replacement or removal version. pypi.org - Behavior changed
A previous change to the default port for mongosrv DSNs is reverted, so existing behavior returns. github.com
And 6 more in this version.
pydantic 2.1.0 breaking changes
- Behavior changed
Generated JSON schema output changes to use the contentSchema keyword. Code that compares or parses generated schemas may need updating. github.com - Behavior changed
Field
Passing an invalid field name to Field now raises an error instead of being accepted. Check that Field is only used with valid field names. github.com
And 7 more in this version.
pydantic 2.0.3 breaking changes
- Removed
pydantic.functional_validators.ModelAfterValidator.__call__
ModelAfterValidator.__call__ was removed in pydantic 2.0.3 pypi.org - Removed
pydantic.functional_validators.ModelAfterValidatorWithoutInfo.__call__
ModelAfterValidatorWithoutInfo.__call__ was removed in pydantic 2.0.3 pypi.org
And 9 more in this version.
pydantic 2.0.2 breaking changes
- Removed
pydantic.type_adapter.DefsRef
pydantic.type_adapter.DefsRef was removed in pydantic 2.0.2 pypi.org - Signature changed
pydantic.json_schema.GenerateJsonSchema.generate_definitions
The signature of GenerateJsonSchema.generate_definitions was changed to fix an error in its definition. Code calling it with the previous arguments may need updating. pypi.org
And 2 more in this version.
pydantic 2.0.1 breaking changes
- Removed
BaseSettings
BaseSettings was moved to another package rather than removed, so code importing it from pydantic must import it from the new package instead. github.com - Removed
pydantic.json_schema.GenerateJsonSchema.change_defs_ref
GenerateJsonSchema.change_defs_ref was removed in pydantic 2.0.1 pypi.org
And 8 more in this version.
pydantic 2.0 breaking changes
- Removed
parse_env_var
parse_env_var is removed in this release; the migration guide describes the change. github.com - Removed
pydantic.AmqpDsn.allowed_schemes
AmqpDsn.allowed_schemes was removed in pydantic 2.0 pypi.org
And 1,248 more in this version.
pydantic 2.0b3 breaking changes
- Removed
pydantic.SecretField
SecretField is no longer part of the public API, so code importing it must change. pypi.org
pydantic 2.0b1 breaking changes
- Renamed
Config
Models configure themselves with model_config instead of an inner class Config. Update model definitions to use model_config. github.com - Behavior changed
JSON schema generation now produces distinct schemas for validation inputs and outputs. Code relying on a single schema may see different results. github.com
And 10 more in this version.
pydantic 2.0a4 breaking changes
- Removed
bare-enum
Changes bare-enum behavior for strict JSON in pydantic 2.0a4 github.com - Removed
pydantic.typing.evaluate_forwardref
pydantic.typing.evaluate_forwardref is on the REMOVED_IN_V2 list and will not exist in V2; stop importing it. github.com
And 3 more in this version.
pydantic 2.0a3 breaking changes
- Removed
pydantic.tools
The tools module moved to pydantic.deprecated; import it from there. github.com - Removed
pydantic.validate_arguments
validate_call replaces validate_arguments; update decorator usage to the new name. pypi.org
And 1 more in this version.
pydantic 1.10.27 breaking changes
- Removed
This is the last V1 release, and V1 support fully ends after it, including the pydantic.v1 namespace in Pydantic V2. Move to Pydantic V2 or pin the older version. github.com - Behavior changed
Durations with a comma as the decimal separator are no longer accepted. Use a period in ISO 8601 duration input. github.com
And 1 more in this version.
pydantic 1.10.24 breaking changes
- Behavior changed
Pydantic V1 will not work with Python 3.14 and greater, and a warning is now raised on use. Users on Python 3.14 or later must move to a supported Python version or to Pydantic V2. github.com
pydantic 1.10.20 breaking changes
- Signature changed
pydantic.utils.validate_field_name
Was def validate_field_name(bases: List[Type[BaseModel]], field_name: str) -> None; now def validate_field_name(bases: Iterable[Type[Any]], field_name: str) -> None. pypi.org - Signature changed
pydantic.v1.utils.validate_field_name
Was def validate_field_name(bases: List[Type[BaseModel]], field_name: str) -> None; now def validate_field_name(bases: Iterable[Type[Any]], field_name: str) -> None. pypi.org
pydantic 1.10.17 breaking changes
- Signature changed
pydantic.v1.dataclasses
Was module pydantic.dataclasses; now module pydantic.v1.dataclasses. pypi.org
pydantic 1.0 breaking changes
- Removed
pydantic.Any
pydantic.Any was removed in pydantic 1.0 pypi.org - Removed
pydantic.AnyType
pydantic.AnyType was removed in pydantic 1.0 pypi.org
And 239 more in this version.
pydantic 1.0b2 breaking changes
- Removed
pydantic.BaseConfig.allow_population_by_alias
The allow_population_by_alias option is renamed to allow_population_by_field_name. Update config code to use the new name. pypi.org
pydantic 1.0b1 breaking changes
- Removed
Config.allow_extra
Config.allow_extra is no longer recognised. Use Config.extra instead. github.com - Removed
Config.ignore_extra
Config.ignore_extra is no longer recognised. Use Config.extra instead. github.com
And 19 more in this version.
pydantic 0.32 breaking changes
- Removed
pydantic.BaseModel.__dir__
BaseModel.__dir__ was removed in pydantic 0.32 pypi.org - Removed
pydantic.BaseModel.__getattr__
BaseModel.__getattr__ was removed in pydantic 0.32 pypi.org
And 4 more in this version.
Related packages
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The API reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

Put your code on continuous maintenance.
Scan a public repository now, or give your agent one line.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.