Skip to content

v2.12.0 2025-10-07

Choose a tag to compare

@Viicos Viicos released this 07 Oct 15:57
· 2118 commits to main since this release
a7928e6

v2.12.0 (2025-10-07)

Note

Check out the blog post for release highlights. Several minor changes (considered non-breaking changes according to our versioning policy) are also included in this release. Make sure to look into them before upgrading.

Warning

The core functionality of Pydantic V1 is not compatible with Python 3.14 or greater. This was fixed in v1.10.26.

This is the final 2.12 release. It features the work of 20 external contributors and provides useful new features, along with initial Python 3.14 support.

Changelog (see the 2.12.0a1 and 2.12.0b1 releases for additional changes since 2.11):

Packaging

New Features

  • Add extra parameter to the validate functions by @anvilpete in #12233
  • Add exclude_computed_fields serialization option by @Viicos in #12334
  • Add preverse_empty_path URL options by @Viicos in #12336
  • Add union_format parameter to JSON Schema generation by @Viicos in #12147
  • Add __qualname__ parameter for create_model by @Atry in #12001

Fixes

  • Do not try to infer name from lambda definitions in pipelines API by @Viicos in #12289
  • Use proper namespace for functions in TypeAdapter by @Viicos in #12324
  • Use Any for context type annotation in TypeAdapter by @inducer in #12279
  • Expose FieldInfo in pydantic.fields.__all__ by @Viicos in #12339
  • Respect validation_alias in @validate_call by @Viicos in #12340
  • Use Any as context annotation in plugin API by @Viicos in #12341
  • Use proper stacklevel in warnings when possible by @Viicos in #12342

New Contributors

Full Changelog: v2.11.10...v2.12.0