Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(deps): update dependency fastapi to v0.115.6 #468

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Apr 3, 2024

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
fastapi (changelog) 0.110.0 -> 0.115.6 age adoption passing confidence

Release Notes

fastapi/fastapi (fastapi)

v0.115.6

Compare Source

Fixes
  • 🐛 Preserve traceback when an exception is raised in sync dependency with yield. PR #​5823 by @​sombek.
Refactors
  • ♻️ Update tests and internals for compatibility with Pydantic >=2.10. PR #​12971 by @​tamird.
Docs
Translations
  • 🌐 Add Traditional Chinese translation for docs/zh-hant/docs/async.md. PR #​12990 by @​ILoveSorasakiHina.
  • 🌐 Add Traditional Chinese translation for docs/zh-hant/docs/tutorial/query-param-models.md. PR #​12932 by @​Vincy1230.
  • 🌐 Add Korean translation for docs/ko/docs/advanced/testing-dependencies.md. PR #​12992 by @​Limsunoh.
  • 🌐 Add Korean translation for docs/ko/docs/advanced/websockets.md. PR #​12991 by @​kwang1215.
  • 🌐 Add Portuguese translation for docs/pt/docs/tutorial/response-model.md. PR #​12933 by @​AndreBBM.
  • 🌐 Add Korean translation for docs/ko/docs/advanced/middlewares.md. PR #​12753 by @​nahyunkeem.
  • 🌐 Add Korean translation for docs/ko/docs/advanced/openapi-webhooks.md. PR #​12752 by @​saeye.
  • 🌐 Add Chinese translation for docs/zh/docs/tutorial/query-param-models.md. PR #​12931 by @​Vincy1230.
  • 🌐 Add Russian translation for docs/ru/docs/tutorial/query-param-models.md. PR #​12445 by @​gitgernit.
  • 🌐 Add Korean translation for docs/ko/docs/tutorial/query-param-models.md. PR #​12940 by @​jts8257.
  • 🔥 Remove obsolete tutorial translation to Chinese for docs/zh/docs/tutorial/sql-databases.md, it references files that are no longer on the repo. PR #​12949 by @​tiangolo.
Internal

v0.115.5

Compare Source

Refactors
Docs
Translations
Internal

v0.115.4

Compare Source

Refactors
  • ♻️ Update logic to import and check python-multipart for compatibility with newer version. PR #​12627 by @​tiangolo.
Docs
Translations
Internal

v0.115.3

Compare Source

Upgrades
Docs
Translations
Internal

v0.115.2

Compare Source

Upgrades

v0.115.1

Compare Source

Fixes
Refactors
Docs
Translations
Internal

v0.115.0

Compare Source

Highlights

Now you can declare Query, Header, and Cookie parameters with Pydantic models. 🎉

Query Parameter Models

Use Pydantic models for Query parameters:

from typing import Annotated, Literal

from fastapi import FastAPI, Query
from pydantic import BaseModel, Field

app = FastAPI()

class FilterParams(BaseModel):
    limit: int = Field(100, gt=0, le=100)
    offset: int = Field(0, ge=0)
    order_by: Literal["created_at", "updated_at"] = "created_at"
    tags: list[str] = []

@​app.get("/items/")
async def read_items(filter_query: Annotated[FilterParams, Query()]):
    return filter_query

Read the new docs: Query Parameter Models.

Header Parameter Models

Use Pydantic models for Header parameters:

from typing import Annotated

from fastapi import FastAPI, Header
from pydantic import BaseModel

app = FastAPI()

class CommonHeaders(BaseModel):
    host: str
    save_data: bool
    if_modified_since: str | None = None
    traceparent: str | None = None
    x_tag: list[str] = []

@​app.get("/items/")
async def read_items(headers: Annotated[CommonHeaders, Header()]):
    return headers

Read the new docs: Header Parameter Models.

Cookie Parameter Models

Use Pydantic models for Cookie parameters:

from typing import Annotated

from fastapi import Cookie, FastAPI
from pydantic import BaseModel

app = FastAPI()

class Cookies(BaseModel):
    session_id: str
    fatebook_tracker: str | None = None
    googall_tracker: str | None = None

@​app.get("/items/")
async def read_items(cookies: Annotated[Cookies, Cookie()]):
    return cookies

Read the new docs: Cookie Parameter Models.

Forbid Extra Query (Cookie, Header) Parameters

Use Pydantic models to restrict extra values for Query parameters (also applies to Header and Cookie parameters).

To achieve it, use Pydantic's model_config = {"extra": "forbid"}:

from typing import Annotated, Literal

from fastapi import FastAPI, Query
from pydantic import BaseModel, Field

app = FastAPI()

class FilterParams(BaseModel):
    model_config = {"extra": "forbid"}

    limit: int = Field(100, gt=0, le=100)
    offset: int = Field(0, ge=0)
    order_by: Literal["created_at", "updated_at"] = "created_at"
    tags: list[str] = []

@​app.get("/items/")
async def read_items(filter_query: Annotated[FilterParams, Query()]):
    return filter_query

This applies to Query, Header, and Cookie parameters, read the new docs:

Features
  • ✨ Add support for Pydantic models for parameters using Query, Cookie, Header. PR #​12199 by @​tiangolo.
Translations
  • 🌐 Add Portuguese translation for docs/pt/docs/advanced/security/http-basic-auth.md. PR #​12195 by @​ceb10n.
Internal
  • ⬆ [pre-commit.ci] pre-commit autoupdate. PR [#​1220

Configuration

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

🚦 Automerge: Enabled.

Rebasing: Whenever PR is behind base branch, 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 was generated by Mend Renovate. View the repository job log.

@renovate renovate bot enabled auto-merge (rebase) April 3, 2024 23:41
@renovate renovate bot force-pushed the renovate/fastapi-0.x-lockfile branch from 2096989 to 25e028b Compare April 19, 2024 02:21
@renovate renovate bot changed the title chore(deps): update dependency fastapi to v0.110.1 chore(deps): update dependency fastapi to v0.110.2 Apr 19, 2024
@renovate renovate bot force-pushed the renovate/fastapi-0.x-lockfile branch from 25e028b to 3a2849a Compare April 30, 2024 01:51
@renovate renovate bot changed the title chore(deps): update dependency fastapi to v0.110.2 chore(deps): update dependency fastapi to v0.110.3 Apr 30, 2024
auto-merge was automatically disabled April 30, 2024 01:53

Base branch requires signed commits

@renovate renovate bot force-pushed the renovate/fastapi-0.x-lockfile branch from 3a2849a to 5cecb84 Compare May 3, 2024 01:46
@renovate renovate bot enabled auto-merge (rebase) May 3, 2024 01:46
@renovate renovate bot changed the title chore(deps): update dependency fastapi to v0.110.3 chore(deps): update dependency fastapi to v0.111.0 May 3, 2024
auto-merge was automatically disabled May 3, 2024 01:48

Base branch requires signed commits

@renovate renovate bot force-pushed the renovate/fastapi-0.x-lockfile branch from 5cecb84 to 5ba3f3a Compare July 14, 2024 19:57
@renovate renovate bot enabled auto-merge (rebase) July 14, 2024 19:57
@renovate renovate bot changed the title chore(deps): update dependency fastapi to v0.111.0 chore(deps): update dependency fastapi to v0.111.1 Jul 14, 2024
@renovate renovate bot force-pushed the renovate/fastapi-0.x-lockfile branch 4 times, most recently from c83c1be to 252005c Compare July 17, 2024 10:23
auto-merge was automatically disabled July 17, 2024 10:25

Base branch requires signed commits

@renovate renovate bot enabled auto-merge (rebase) July 17, 2024 10:30
@renovate renovate bot force-pushed the renovate/fastapi-0.x-lockfile branch from 252005c to 8de9f4b Compare July 17, 2024 10:30
auto-merge was automatically disabled July 17, 2024 10:32

Base branch requires signed commits

@renovate renovate bot force-pushed the renovate/fastapi-0.x-lockfile branch from 8de9f4b to 54c9695 Compare August 2, 2024 07:42
@renovate renovate bot changed the title chore(deps): update dependency fastapi to v0.111.1 chore(deps): update dependency fastapi to v0.112.0 Aug 2, 2024
@renovate renovate bot enabled auto-merge (rebase) August 7, 2024 01:36
@renovate renovate bot force-pushed the renovate/fastapi-0.x-lockfile branch from 54c9695 to fbd6feb Compare August 7, 2024 01:36
auto-merge was automatically disabled August 7, 2024 01:40

Base branch requires signed commits

@renovate renovate bot force-pushed the renovate/fastapi-0.x-lockfile branch from fbd6feb to f6b2441 Compare August 15, 2024 21:30
@renovate renovate bot changed the title chore(deps): update dependency fastapi to v0.112.0 chore(deps): update dependency fastapi to v0.112.1 Aug 15, 2024
@renovate renovate bot force-pushed the renovate/fastapi-0.x-lockfile branch from f6b2441 to 348bab2 Compare August 24, 2024 21:06
@renovate renovate bot changed the title chore(deps): update dependency fastapi to v0.112.1 chore(deps): update dependency fastapi to v0.112.2 Aug 24, 2024
@renovate renovate bot force-pushed the renovate/fastapi-0.x-lockfile branch from 348bab2 to b9e33a2 Compare August 27, 2024 18:09
@renovate renovate bot enabled auto-merge (rebase) August 27, 2024 18:09
auto-merge was automatically disabled August 27, 2024 18:11

Base branch requires signed commits

@renovate renovate bot force-pushed the renovate/fastapi-0.x-lockfile branch from b9e33a2 to c4b4a29 Compare September 5, 2024 11:36
@renovate renovate bot changed the title chore(deps): update dependency fastapi to v0.112.2 chore(deps): update dependency fastapi to v0.112.3 Sep 5, 2024
@renovate renovate bot force-pushed the renovate/fastapi-0.x-lockfile branch from c4b4a29 to 8e95250 Compare September 5, 2024 15:53
@renovate renovate bot changed the title chore(deps): update dependency fastapi to v0.112.3 chore(deps): update dependency fastapi to v0.113.0 Sep 5, 2024
@renovate renovate bot force-pushed the renovate/fastapi-0.x-lockfile branch from 8e95250 to e3f04f6 Compare September 6, 2024 19:16
@renovate renovate bot changed the title chore(deps): update dependency fastapi to v0.113.0 chore(deps): update dependency fastapi to v0.114.0 Sep 6, 2024
@renovate renovate bot force-pushed the renovate/fastapi-0.x-lockfile branch from e3f04f6 to e45abd0 Compare September 11, 2024 08:00
@renovate renovate bot changed the title chore(deps): update dependency fastapi to v0.114.0 chore(deps): update dependency fastapi to v0.114.1 Sep 11, 2024
@renovate renovate bot force-pushed the renovate/fastapi-0.x-lockfile branch from e45abd0 to 0456d3a Compare September 13, 2024 22:15
@renovate renovate bot changed the title chore(deps): update dependency fastapi to v0.114.1 chore(deps): update dependency fastapi to v0.114.2 Sep 13, 2024
@renovate renovate bot force-pushed the renovate/fastapi-0.x-lockfile branch from 0456d3a to 134e559 Compare September 17, 2024 20:21
@renovate renovate bot changed the title chore(deps): update dependency fastapi to v0.114.2 chore(deps): update dependency fastapi to v0.115.0 Sep 17, 2024
@renovate renovate bot force-pushed the renovate/fastapi-0.x-lockfile branch from 134e559 to 26d62e5 Compare October 12, 2024 09:58
@renovate renovate bot changed the title chore(deps): update dependency fastapi to v0.115.0 chore(deps): update dependency fastapi to v0.115.1 Oct 12, 2024
@renovate renovate bot force-pushed the renovate/fastapi-0.x-lockfile branch from 26d62e5 to f7f0b06 Compare October 12, 2024 12:21
@renovate renovate bot changed the title chore(deps): update dependency fastapi to v0.115.1 chore(deps): update dependency fastapi to v0.115.2 Oct 12, 2024
@renovate renovate bot force-pushed the renovate/fastapi-0.x-lockfile branch from f7f0b06 to 7cfecb1 Compare October 22, 2024 17:44
@renovate renovate bot changed the title chore(deps): update dependency fastapi to v0.115.2 chore(deps): update dependency fastapi to v0.115.3 Oct 22, 2024
@renovate renovate bot force-pushed the renovate/fastapi-0.x-lockfile branch from 7cfecb1 to 9c7d654 Compare October 28, 2024 01:22
@renovate renovate bot changed the title chore(deps): update dependency fastapi to v0.115.3 chore(deps): update dependency fastapi to v0.115.4 Oct 28, 2024
@renovate renovate bot force-pushed the renovate/fastapi-0.x-lockfile branch from 9c7d654 to e8b4dbe Compare November 12, 2024 19:25
@renovate renovate bot changed the title chore(deps): update dependency fastapi to v0.115.4 chore(deps): update dependency fastapi to v0.115.5 Nov 12, 2024
@renovate renovate bot force-pushed the renovate/fastapi-0.x-lockfile branch from e8b4dbe to 340220e Compare December 4, 2024 02:20
@renovate renovate bot changed the title chore(deps): update dependency fastapi to v0.115.5 chore(deps): update dependency fastapi to v0.115.6 Dec 4, 2024
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.

0 participants