Skip to content

chore(deps)(deps): Bump pydantic from 2.10.3 to 2.12.4 in /backend#148

Open
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/pip/backend/pydantic-2.12.4
Open

chore(deps)(deps): Bump pydantic from 2.10.3 to 2.12.4 in /backend#148
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/pip/backend/pydantic-2.12.4

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Nov 10, 2025

Copy link
Copy Markdown
Contributor

Bumps pydantic from 2.10.3 to 2.12.4.

Release notes

Sourced from pydantic's releases.

v2.12.4 2025-11-05

v2.12.4 (2025-11-05)

This is the fourth 2.12 patch release, fixing more regressions, and reverting a change in the build() method of the AnyUrl and Dsn types.

This patch release also fixes an issue with the serialization of IP address types, when serialize_as_any is used. The next patch release will try to address the remaining issues with serialize as any behavior by introducing a new polymorphic serialization feature, that should be used in most cases in place of serialize as any.

Full Changelog: pydantic/pydantic@v2.12.3...v2.12.4

v2.12.3 2025-10-17

v2.12.3 (2025-10-17)

What's Changed

This is the third 2.13 patch release, fixing issues related to the FieldInfo class, and reverting a change to the supported after model validator function signatures.

  • Raise a warning when an invalid after model validator function signature is raised by @​Viicos in #12414. Starting in 2.12.0, using class methods for after model validators raised an error, but the error wasn't raised concistently. We decided to emit a deprecation warning instead.
  • Add FieldInfo.asdict() method, improve documentation around FieldInfo by @​Viicos in #12411. This also adds back support for mutations on FieldInfo classes, that are reused as Annotated metadata. However, note that this is still not a supported pattern. Instead, please refer to the added example in the documentation.

The blog post section on changes was also updated to document the changes related to serialize_as_any.

Full Changelog: pydantic/pydantic@v2.12.2...v2.12.3

v2.12.2 2025-10-14

v2.12.2 (2025-10-14)

What's Changed

... (truncated)

Changelog

Sourced from pydantic's changelog.

v2.12.4 (2025-11-05)

GitHub release

This is the fourth 2.12 patch release, fixing more regressions, and reverting a change in the build() method of the AnyUrl and Dsn types.

This patch release also fixes an issue with the serialization of IP address types, when serialize_as_any is used. The next patch release will try to address the remaining issues with serialize as any behavior by introducing a new polymorphic serialization feature, that should be used in most cases in place of serialize as any.

v2.12.3 (2025-10-17)

GitHub release

What's Changed

This is the third 2.12 patch release, fixing issues related to the FieldInfo class, and reverting a change to the supported after model validator function signatures.

  • Raise a warning when an invalid after model validator function signature is raised by @​Viicos in #12414. Starting in 2.12.0, using class methods for after model validators raised an error, but the error wasn't raised concistently. We decided to emit a deprecation warning instead.
  • Add FieldInfo.asdict() method, improve documentation around FieldInfo by @​Viicos in #12411. This also add back support for mutations on FieldInfo classes, that are reused as Annotated metadata. However, note that this is still not a supported pattern. Instead, please refer to the added example in the documentation.

The blog post section on changes was also updated to document the changes related to serialize_as_any.

v2.12.2 (2025-10-14)

... (truncated)

Commits
  • 5c842df Prepare release v2.12.4
  • c678a71 Bump pydantic-core to v2.41.5
  • a7cd292 Bump cloudpickle to v3.1.2
  • 21f6278 Bump actions/setup-node from 5 to 6
  • 8d6be8f Bump astral-sh/setup-uv from 6 to 7
  • 17865ea Bump actions/upload-artifact from 4 to 5
  • 90ad0af Bump actions/download-artifact from 5 to 6
  • 18e6672 Drop testing under PyPy 3.9
  • 650215b Document workaround for MongoDsn default port
  • e326790 Fix example of for bytes_invalid_encoding validation error
  • Additional commits viewable in compare view

Dependabot compatibility score

You can trigger a rebase of this PR by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Note
Automatic rebases have been disabled on this pull request as it has been open for over 30 days.

@dependabot dependabot Bot added backend Backend API related dependencies Dependency updates labels Nov 10, 2025
@dependabot dependabot Bot requested a review from astrion-studio as a code owner November 10, 2025 11:56
@dependabot dependabot Bot added dependencies Dependency updates backend Backend API related labels Nov 10, 2025
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Nov 10, 2025

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
farelens-api bf66a60 Commit Preview URL

Branch Preview URL
Dec 08 2025, 10:35 AM

@astrion-studio

Copy link
Copy Markdown
Owner

/gemini review and address why the two checks failed

@astrion-studio

Copy link
Copy Markdown
Owner

@codex review and address why the two checks failed

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request updates pydantic from version 2.10.3 to 2.12.4. This is a minor version bump that includes new features and bug fixes. I've left a comment highlighting a potential breaking change in pydantic v2.12 that you should be aware of. Please ensure the application is thoroughly tested after this upgrade to catch any potential regressions.

Comment thread backend/requirements.txt Outdated
fastapi==0.115.5
uvicorn[standard]==0.38.0
pydantic==2.10.3
pydantic==2.12.4

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

high

Heads up: pydantic v2.12 introduced changes to the behavior of serialize_as_any. If your codebase relies on serialize_as_any=True, this update may introduce breaking changes in serialization logic. It's recommended to thoroughly test model serialization to prevent unexpected output. The release notes mention that a new polymorphic serialization feature is planned to replace serialize_as_any in many cases.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread backend/requirements.txt
Comment on lines 2 to 5
fastapi==0.115.5
uvicorn[standard]==0.38.0
pydantic==2.10.3
pydantic==2.12.4
pydantic-settings==2.6.1

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Keep pydantic within FastAPI’s supported range

Bumping pydantic to 2.12.4 conflicts with fastapi==0.115.5, which still declares an upper bound of <2.12. When the CI jobs run pip install -r requirements.txt, dependency resolution fails before linting or tests can start, which explains both failing checks. Either revert the bump or upgrade FastAPI (and any other consumers) to a version that allows 2.12.x.

Useful? React with 👍 / 👎.

@dependabot dependabot Bot force-pushed the dependabot/pip/backend/pydantic-2.12.4 branch from bdcacf3 to 8028e37 Compare November 25, 2025 05:58
Bumps [pydantic](https://github.com/pydantic/pydantic) from 2.10.3 to 2.12.4.
- [Release notes](https://github.com/pydantic/pydantic/releases)
- [Changelog](https://github.com/pydantic/pydantic/blob/v2.12.4/HISTORY.md)
- [Commits](pydantic/pydantic@v2.10.3...v2.12.4)

---
updated-dependencies:
- dependency-name: pydantic
  dependency-version: 2.12.4
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot force-pushed the dependabot/pip/backend/pydantic-2.12.4 branch from 8028e37 to bf66a60 Compare December 8, 2025 10:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backend Backend API related dependencies Dependency updates

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant