Skip to content

Bump pydantic from 2.14.1 to 2.14.2 - #14256

Merged
github-actions[bot] merged 1 commit into
3.15from
dependabot/pip/3.15/pydantic-2.14.2
Nov 4, 2026
Merged

github-actions[bot] merged 1 commit into
3.15from
dependabot/pip/3.15/pydantic-2.14.2

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Nov 2, 2026 •

Copy link
Copy Markdown
Contributor

Bumps pydantic from 2.14.1 to 2.14.2.

Release notes

Sourced from pydantic's releases.

v2.14.2 2026-10-29

v2.14.2 (2026-10-29)

This release addresses 2 security issues, GHSA-qpmf-fgh3-ff25 and GHSA-3r8g-cqwr-jr29.

Packaging

Performance

Fixes

  • Make JSON validation by iteration consistent with Python approach by @​davidhewitt in #13275.

    JSON validation now handles field lookup and extra data the same way as Python validation. In particular, keys that only match an unused alias or field name are now treated as extra data, instead of being silently dropped:

    from pydantic import BaseModel, ConfigDict
    from pydantic.alias_generators import to_camel
    class Page(BaseModel):
    model_config = ConfigDict(extra='forbid', alias_generator=to_camel)
    page_size: int = 10
    
    Page.model_validate_json('{"page_size": 50}')
    Before: Page(page_size=10)
    After: ValidationError (extra_forbidden)

    See the pull request for the full list of behavior changes. This change addresses GHSA-qpmf-fgh3-ff25.

  • Ignore extra data matching a field name in TypedDict and dataclasses with extra=allow by @​Viicos in #14090. Addresses GHSA-3r8g-cqwr-jr29.

  • Fix unpickling of generic classes defined in separate module by @​Viicos in #13994

  • Support explicit by_alias overriding validate_by_alias in validation JSON schemas by @​Viicos in #13997

  • Fix mypy plugin crash on deferred empty model by @​ilevkivskyi in #14027

  • Fix infinite recursion when validating an invalid default with PydanticUseDefault by @​Viicos in #14028

  • Implement recursion guard for validate_strings() by @​Viicos in #14029

... (truncated)

Changelog

Sourced from pydantic's changelog.

v2.14.2 (2026-10-29)

GitHub release

What's Changed

Packaging

Performance

Fixes

  • Make JSON validation by iteration consistent with Python approach by @​davidhewitt in #13275.

    JSON validation now handles field lookup and extra data the same way as Python validation. In particular, keys that only match an unused alias or field name are now treated as extra data, instead of being silently dropped:

    from pydantic import BaseModel, ConfigDict
    from pydantic.alias_generators import to_camel
    class Page(BaseModel):
    model_config = ConfigDict(extra='forbid', alias_generator=to_camel)
    page_size: int = 10
    
    Page.model_validate_json('{"page_size": 50}')
    Before: Page(page_size=10)
    After: ValidationError (extra_forbidden)

    See the pull request for the full list of behavior changes.

  • Fix unpickling of generic classes defined in separate module by @​Viicos in #13994

  • Support explicit by_alias overriding validate_by_alias in validation JSON schemas by @​Viicos in #13997

  • Fix mypy plugin crash on deferred empty model by @​ilevkivskyi in #14027

  • Fix infinite recursion when validating an invalid default with PydanticUseDefault by @​Viicos in #14028

  • Implement recursion guard for validate_strings() by @​Viicos in #14029

  • Support named tuples in Sequence serialization by @​Viicos in #14033

... (truncated)

Commits
  • aa540ac Update changelog for v2.14.2
  • 6cde12f Update changelog for v2.14.2
  • 2db7c25 Fix deep copy of self-referential models
  • d783154 Update changelog for v2.14.2
  • df49b6c Avoid heap allocation for small JSON model field buffers
  • cd93e69 Skip decorator field checks when no field decorators exist
  • 2771e57 Make JSON validation by iteration consistent with Python approach
  • 8102e3f Avoid Python tuple allocation during model fields validation
  • dd139b5 Bump pydantic.v1 namespace to v1.10.27
  • 66155f9 Prepare release v2.14.2
  • Additional commits viewable in compare view

@dependabot dependabot Bot added the dependencies Pull requests that update a dependency file label Nov 2, 2026
@github-actions
github-actions Bot enabled auto-merge (squash) November 2, 2026 10:58
@codecov

codecov Bot commented Nov 2, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 96.51%. Comparing base (e2e3d5f) to head (0dfa275).
⚠️ Report is 6 commits behind head on 3.15.
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@           Coverage Diff           @@
##             3.15   #14256   +/-   ##
=======================================
  Coverage   96.51%   96.51%           
=======================================
  Files         161      161           
  Lines       54697    54697           
  Branches     2928     2928           
=======================================
  Hits        52790    52790           
  Misses       1739     1739           
  Partials      168      168           
Flag Coverage Δ
Autobahn 21.22% <ø> (ø)
CI-GHA 96.38% <ø> (ø)
OS-Linux 96.02% <ø> (ø)
OS-Windows 94.28% <ø> (ø)
OS-macOS 95.70% <ø> (-0.02%) ⬇️
Py-3.11 95.65% <ø> (-0.01%) ⬇️
Py-3.12 95.72% <ø> (+<0.01%) ⬆️
Py-3.13 95.71% <ø> (ø)
Py-3.14 95.73% <ø> (-0.01%) ⬇️
Py-3.15 95.73% <ø> (-0.01%) ⬇️
Py-3.15t 95.57% <ø> (-0.01%) ⬇️
Py-pypy-3.12 94.21% <ø> (ø)
VM-macos-latest 95.70% <ø> (-0.02%) ⬇️
VM-ubuntu-latest 96.02% <ø> (ø)
VM-windows-latest 94.28% <ø> (ø)
cython-coverage 79.94% <ø> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

@asvetlov

asvetlov commented Nov 4, 2026

Copy link
Copy Markdown
Member

@dependabot rebase

Bumps [pydantic](https://github.com/pydantic/pydantic) from 2.14.1 to 2.14.2.
- [Release notes](https://github.com/pydantic/pydantic/releases)
- [Changelog](https://github.com/pydantic/pydantic/blob/v2.14.2/HISTORY.md)
- [Commits](pydantic/pydantic@v2.14.1...v2.14.2)

---
updated-dependencies:
- dependency-name: pydantic
  dependency-version: 2.14.2
  dependency-type: indirect
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot
dependabot Bot force-pushed the dependabot/pip/3.15/pydantic-2.14.2 branch from 14eb0d8 to 0dfa275 Compare November 4, 2026 12:57
@codspeed

codspeed Bot commented Nov 4, 2026

Copy link
Copy Markdown

Merging this PR will not alter performance

1 warning

⚠️ 49 benchmarks are dominated by system calls

System calls cannot be simulated consistently and are left out of the measure. The reported value understates the real cost. Switch to the Walltime instrument to measure them.

Learn more about system calls

See affected benchmarks

✅ 99 untouched benchmarks
⏩ 86 skipped benchmarks1


Comparing dependabot/pip/3.15/pydantic-2.14.2 (0dfa275) with 3.15 (e2e3d5f)2

Open in CodSpeed

Footnotes

  1. 86 benchmarks were skipped, so the baseline results were used instead. If they were deleted from the codebase, click here and archive them to remove them from the performance reports. ↩

  2. No successful run was found on 3.15 (5e44fea) during the generation of this report, so e2e3d5f was used instead as the comparison base. There might be some changes unrelated to this pull request in this report. ↩

@github-actions
github-actions Bot merged commit a5f4e40 into 3.15 Nov 4, 2026
47 checks passed
@github-actions
github-actions Bot deleted the dependabot/pip/3.15/pydantic-2.14.2 branch November 4, 2026 13:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant