Skip to content

chore(deps): update dependency fastapi-slim to v0.119.0#94

Merged
malteo merged 1 commit into
masterfrom
renovate/fastapi-slim-0.x
Oct 17, 2025
Merged

chore(deps): update dependency fastapi-slim to v0.119.0#94
malteo merged 1 commit into
masterfrom
renovate/fastapi-slim-0.x

Conversation

@cloudesire-bot

Copy link
Copy Markdown
Collaborator

This PR contains the following updates:

Package Type Update Change
fastapi-slim (changelog) project.dependencies minor ==0.118.2 -> ==0.119.0

Release Notes

fastapi/fastapi (fastapi-slim)

v0.119.0

Compare Source

FastAPI now (temporarily) supports both Pydantic v2 models and pydantic.v1 models at the same time in the same app, to make it easier for any FastAPI apps still using Pydantic v1 to gradually but quickly migrate to Pydantic v2.

from fastapi import FastAPI
from pydantic import BaseModel as BaseModelV2
from pydantic.v1 import BaseModel

class Item(BaseModel):
    name: str
    description: str | None = None

class ItemV2(BaseModelV2):
    title: str
    summary: str | None = None

app = FastAPI()

@​app.post("/items/", response_model=ItemV2)
def create_item(item: Item):
    return {"title": item.name, "summary": item.description}

Adding this feature was a big effort with the main objective of making it easier for the few applications still stuck in Pydantic v1 to migrate to Pydantic v2.

And with this, support for Pydantic v1 is now deprecated and will be removed from FastAPI in a future version soon.

Note: have in mind that the Pydantic team already stopped supporting Pydantic v1 for recent versions of Python, starting with Python 3.14.

You can read in the docs more about how to Migrate from Pydantic v1 to Pydantic v2.

Features
  • ✨ Add support for from pydantic.v1 import BaseModel, mixed Pydantic v1 and v2 models in the same app. PR #​14168 by @​tiangolo.

v0.118.3

Compare Source

Upgrades

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Renovate Bot.

@cloudesire-bot cloudesire-bot requested a review from malteo October 17, 2025 07:07
@malteo malteo merged commit 706700b into master Oct 17, 2025
2 checks passed
@malteo malteo deleted the renovate/fastapi-slim-0.x branch October 17, 2025 07:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants