chore(deps): update dependency fastapi to v0.115.8 - autoclosed #7

Closed
renovate wants to merge 1 commits from renovate/fastapi-0.x into main
Member

This PR contains the following updates:

Package Update Change
fastapi (changelog) minor ==0.114.0 -> ==0.115.8

Release Notes

fastapi/fastapi (fastapi)

v0.115.8

Compare Source

Fixes
  • 🐛 Fix OAuth2PasswordRequestForm and OAuth2PasswordRequestFormStrict fixed grant_type "password" RegEx. PR #​9783 by @​skarfie123.
Refactors
Docs
Translations
  • 🌐 Add Japanese translation for docs/ja/docs/environment-variables.md. PR #​13226 by @​k94-ishi.
  • 🌐 Add Russian translation for docs/ru/docs/advanced/async-tests.md. PR #​13227 by @​Rishat-F.
  • 🌐 Update Russian translation for docs/ru/docs/tutorial/dependencies/dependencies-in-path-operation-decorators.md. PR #​13252 by @​Rishat-F.
  • 🌐 Add Russian translation for docs/ru/docs/tutorial/bigger-applications.md. PR #​13154 by @​alv2017.
Internal

v0.115.7

Compare Source

Upgrades
Refactors
Docs
Translations
Internal

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.

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.

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

v0.114.2

Compare Source

Fixes
Translations
Internal

v0.114.1

Compare Source

Refactors
  • ️ Improve performance in request body parsing with a cache for internal model fields. PR #​12184 by @​tiangolo.
Docs
  • 📝 Remove duplicate line in docs for docs/en/docs/environment-variables.md. PR #​12169 by @​prometek.
Translations
Internal

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.

This PR contains the following updates: | Package | Update | Change | |---|---|---| | [fastapi](https://github.com/fastapi/fastapi) ([changelog](https://fastapi.tiangolo.com/release-notes/)) | minor | `==0.114.0` -> `==0.115.8` | --- ### Release Notes <details> <summary>fastapi/fastapi (fastapi)</summary> ### [`v0.115.8`](https://github.com/fastapi/fastapi/releases/tag/0.115.8) [Compare Source](https://github.com/fastapi/fastapi/compare/0.115.7...0.115.8) ##### Fixes - 🐛 Fix `OAuth2PasswordRequestForm` and `OAuth2PasswordRequestFormStrict` fixed `grant_type` "password" RegEx. PR [#&#8203;9783](https://github.com/fastapi/fastapi/pull/9783) by [@&#8203;skarfie123](https://github.com/skarfie123). ##### Refactors - ✅ Simplify tests for body_multiple_params . PR [#&#8203;13237](https://github.com/fastapi/fastapi/pull/13237) by [@&#8203;alejsdev](https://github.com/alejsdev). - ♻️ Move duplicated code portion to a static method in the `APIKeyBase` super class. PR [#&#8203;3142](https://github.com/fastapi/fastapi/pull/3142) by [@&#8203;ShahriyarR](https://github.com/ShahriyarR). - ✅ Simplify tests for request_files. PR [#&#8203;13182](https://github.com/fastapi/fastapi/pull/13182) by [@&#8203;alejsdev](https://github.com/alejsdev). ##### Docs - 📝 Change the word "unwrap" to "unpack" in `docs/en/docs/tutorial/extra-models.md`. PR [#&#8203;13061](https://github.com/fastapi/fastapi/pull/13061) by [@&#8203;timothy-jeong](https://github.com/timothy-jeong). - 📝 Update Request Body's `tutorial002` to deal with `tax=0` case. PR [#&#8203;13230](https://github.com/fastapi/fastapi/pull/13230) by [@&#8203;togogh](https://github.com/togogh). - 👥 Update FastAPI People - Experts. PR [#&#8203;13269](https://github.com/fastapi/fastapi/pull/13269) by [@&#8203;tiangolo](https://github.com/tiangolo). ##### Translations - 🌐 Add Japanese translation for `docs/ja/docs/environment-variables.md`. PR [#&#8203;13226](https://github.com/fastapi/fastapi/pull/13226) by [@&#8203;k94-ishi](https://github.com/k94-ishi). - 🌐 Add Russian translation for `docs/ru/docs/advanced/async-tests.md`. PR [#&#8203;13227](https://github.com/fastapi/fastapi/pull/13227) by [@&#8203;Rishat-F](https://github.com/Rishat-F). - 🌐 Update Russian translation for `docs/ru/docs/tutorial/dependencies/dependencies-in-path-operation-decorators.md`. PR [#&#8203;13252](https://github.com/fastapi/fastapi/pull/13252) by [@&#8203;Rishat-F](https://github.com/Rishat-F). - 🌐 Add Russian translation for `docs/ru/docs/tutorial/bigger-applications.md`. PR [#&#8203;13154](https://github.com/fastapi/fastapi/pull/13154) by [@&#8203;alv2017](https://github.com/alv2017). ##### Internal - ⬆️ Add support for Python 3.13. PR [#&#8203;13274](https://github.com/fastapi/fastapi/pull/13274) by [@&#8203;tiangolo](https://github.com/tiangolo). - ⬆️ Upgrade AnyIO max version for tests, new range: `>=3.2.1,<5.0.0`. PR [#&#8203;13273](https://github.com/fastapi/fastapi/pull/13273) by [@&#8203;tiangolo](https://github.com/tiangolo). - 🔧 Update Sponsors badges. PR [#&#8203;13271](https://github.com/fastapi/fastapi/pull/13271) by [@&#8203;tiangolo](https://github.com/tiangolo). - ♻️ Fix `notify_translations.py` empty env var handling for PR label events vs workflow_dispatch. PR [#&#8203;13272](https://github.com/fastapi/fastapi/pull/13272) by [@&#8203;tiangolo](https://github.com/tiangolo). - ♻️ Refactor and move `scripts/notify_translations.py`, no need for a custom GitHub Action. PR [#&#8203;13270](https://github.com/fastapi/fastapi/pull/13270) by [@&#8203;tiangolo](https://github.com/tiangolo). - 🔨 Update FastAPI People Experts script, refactor and optimize data fetching to handle rate limits. PR [#&#8203;13267](https://github.com/fastapi/fastapi/pull/13267) by [@&#8203;tiangolo](https://github.com/tiangolo). - ⬆ Bump pypa/gh-action-pypi-publish from 1.12.3 to 1.12.4. PR [#&#8203;13251](https://github.com/fastapi/fastapi/pull/13251) by [@&#8203;dependabot\[bot\]](https://github.com/apps/dependabot). ### [`v0.115.7`](https://github.com/fastapi/fastapi/releases/tag/0.115.7) [Compare Source](https://github.com/fastapi/fastapi/compare/0.115.6...0.115.7) ##### Upgrades - ⬆️ Upgrade `python-multipart` to >=0.0.18. PR [#&#8203;13219](https://github.com/fastapi/fastapi/pull/13219) by [@&#8203;DanielKusyDev](https://github.com/DanielKusyDev). - ⬆️ Bump Starlette to allow up to 0.45.0: `>=0.40.0,<0.46.0`. PR [#&#8203;13117](https://github.com/fastapi/fastapi/pull/13117) by [@&#8203;Kludex](https://github.com/Kludex). - ⬆️ Upgrade `jinja2` to >=3.1.5. PR [#&#8203;13194](https://github.com/fastapi/fastapi/pull/13194) by [@&#8203;DanielKusyDev](https://github.com/DanielKusyDev). ##### Refactors - ✅ Simplify tests for websockets. PR [#&#8203;13202](https://github.com/fastapi/fastapi/pull/13202) by [@&#8203;alejsdev](https://github.com/alejsdev). - ✅ Simplify tests for request_form_models . PR [#&#8203;13183](https://github.com/fastapi/fastapi/pull/13183) by [@&#8203;alejsdev](https://github.com/alejsdev). - ✅ Simplify tests for separate_openapi_schemas. PR [#&#8203;13201](https://github.com/fastapi/fastapi/pull/13201) by [@&#8203;alejsdev](https://github.com/alejsdev). - ✅ Simplify tests for security. PR [#&#8203;13200](https://github.com/fastapi/fastapi/pull/13200) by [@&#8203;alejsdev](https://github.com/alejsdev). - ✅ Simplify tests for schema_extra_example. PR [#&#8203;13197](https://github.com/fastapi/fastapi/pull/13197) by [@&#8203;alejsdev](https://github.com/alejsdev). - ✅ Simplify tests for request_model. PR [#&#8203;13195](https://github.com/fastapi/fastapi/pull/13195) by [@&#8203;alejsdev](https://github.com/alejsdev). - ✅ Simplify tests for request_forms_and_files. PR [#&#8203;13185](https://github.com/fastapi/fastapi/pull/13185) by [@&#8203;alejsdev](https://github.com/alejsdev). - ✅ Simplify tests for request_forms. PR [#&#8203;13184](https://github.com/fastapi/fastapi/pull/13184) by [@&#8203;alejsdev](https://github.com/alejsdev). - ✅ Simplify tests for path_query_params. PR [#&#8203;13181](https://github.com/fastapi/fastapi/pull/13181) by [@&#8203;alejsdev](https://github.com/alejsdev). - ✅ Simplify tests for path_operation_configurations. PR [#&#8203;13180](https://github.com/fastapi/fastapi/pull/13180) by [@&#8203;alejsdev](https://github.com/alejsdev). - ✅ Simplify tests for header_params. PR [#&#8203;13179](https://github.com/fastapi/fastapi/pull/13179) by [@&#8203;alejsdev](https://github.com/alejsdev). - ✅ Simplify tests for extra_models. PR [#&#8203;13178](https://github.com/fastapi/fastapi/pull/13178) by [@&#8203;alejsdev](https://github.com/alejsdev). - ✅ Simplify tests for extra_data_types. PR [#&#8203;13177](https://github.com/fastapi/fastapi/pull/13177) by [@&#8203;alejsdev](https://github.com/alejsdev). - ✅ Simplify tests for cookie_params. PR [#&#8203;13176](https://github.com/fastapi/fastapi/pull/13176) by [@&#8203;alejsdev](https://github.com/alejsdev). - ✅ Simplify tests for dependencies. PR [#&#8203;13174](https://github.com/fastapi/fastapi/pull/13174) by [@&#8203;alejsdev](https://github.com/alejsdev). - ✅ Simplify tests for body_updates. PR [#&#8203;13172](https://github.com/fastapi/fastapi/pull/13172) by [@&#8203;alejsdev](https://github.com/alejsdev). - ✅ Simplify tests for body_nested_models. PR [#&#8203;13171](https://github.com/fastapi/fastapi/pull/13171) by [@&#8203;alejsdev](https://github.com/alejsdev). - ✅ Simplify tests for body_multiple_params. PR [#&#8203;13170](https://github.com/fastapi/fastapi/pull/13170) by [@&#8203;alejsdev](https://github.com/alejsdev). - ✅ Simplify tests for body_fields. PR [#&#8203;13169](https://github.com/fastapi/fastapi/pull/13169) by [@&#8203;alejsdev](https://github.com/alejsdev). - ✅ Simplify tests for body. PR [#&#8203;13168](https://github.com/fastapi/fastapi/pull/13168) by [@&#8203;alejsdev](https://github.com/alejsdev). - ✅ Simplify tests for bigger_applications. PR [#&#8203;13167](https://github.com/fastapi/fastapi/pull/13167) by [@&#8203;alejsdev](https://github.com/alejsdev). - ✅ Simplify tests for background_tasks. PR [#&#8203;13166](https://github.com/fastapi/fastapi/pull/13166) by [@&#8203;alejsdev](https://github.com/alejsdev). - ✅ Simplify tests for additional_status_codes. PR [#&#8203;13149](https://github.com/fastapi/fastapi/pull/13149) by [@&#8203;tiangolo](https://github.com/tiangolo). ##### Docs - ✏️ Update Strawberry integration docs. PR [#&#8203;13155](https://github.com/fastapi/fastapi/pull/13155) by [@&#8203;kinuax](https://github.com/kinuax). - 🔥 Remove unused Peewee tutorial files. PR [#&#8203;13158](https://github.com/fastapi/fastapi/pull/13158) by [@&#8203;alejsdev](https://github.com/alejsdev). - 📝 Update image in body-nested-model docs. PR [#&#8203;11063](https://github.com/fastapi/fastapi/pull/11063) by [@&#8203;untilhamza](https://github.com/untilhamza). - 📝 Update `fastapi-cli` UI examples in docs. PR [#&#8203;13107](https://github.com/fastapi/fastapi/pull/13107) by [@&#8203;Zhongheng-Cheng](https://github.com/Zhongheng-Cheng). - 👷 Add new GitHub Action to update contributors, translators, and translation reviewers. PR [#&#8203;13136](https://github.com/fastapi/fastapi/pull/13136) by [@&#8203;tiangolo](https://github.com/tiangolo). - ✏️ Fix typo in `docs/en/docs/virtual-environments.md`. PR [#&#8203;13124](https://github.com/fastapi/fastapi/pull/13124) by [@&#8203;tiangolo](https://github.com/tiangolo). - ✏️ Fix error in `docs/en/docs/contributing.md`. PR [#&#8203;12899](https://github.com/fastapi/fastapi/pull/12899) by [@&#8203;kingsubin](https://github.com/kingsubin). - 📝 Minor corrections in `docs/en/docs/tutorial/sql-databases.md`. PR [#&#8203;13081](https://github.com/fastapi/fastapi/pull/13081) by [@&#8203;alv2017](https://github.com/alv2017). - 📝 Update includes in `docs/ru/docs/tutorial/query-param-models.md`. PR [#&#8203;12994](https://github.com/fastapi/fastapi/pull/12994) by [@&#8203;alejsdev](https://github.com/alejsdev). - ✏️ Fix typo in README installation instructions. PR [#&#8203;13011](https://github.com/fastapi/fastapi/pull/13011) by [@&#8203;dave-hay](https://github.com/dave-hay). - 📝 Update docs for `fastapi-cli`. PR [#&#8203;13031](https://github.com/fastapi/fastapi/pull/13031) by [@&#8203;tiangolo](https://github.com/tiangolo). ##### Translations - 🌐 Update Portuguese Translation for `docs/pt/docs/tutorial/request-forms.md`. PR [#&#8203;13216](https://github.com/fastapi/fastapi/pull/13216) by [@&#8203;Joao-Pedro-P-Holanda](https://github.com/Joao-Pedro-P-Holanda). - 🌐 Update Portuguese translation for `docs/pt/docs/advanced/settings.md`. PR [#&#8203;13209](https://github.com/fastapi/fastapi/pull/13209) by [@&#8203;ceb10n](https://github.com/ceb10n). - 🌐 Add Portuguese translation for `docs/pt/docs/tutorial/security/oauth2-jwt.md`. PR [#&#8203;13205](https://github.com/fastapi/fastapi/pull/13205) by [@&#8203;ceb10n](https://github.com/ceb10n). - 🌐 Add Indonesian translation for `docs/id/docs/index.md`. PR [#&#8203;13191](https://github.com/fastapi/fastapi/pull/13191) by [@&#8203;gerry-sabar](https://github.com/gerry-sabar). - 🌐 Add Indonesian translation for `docs/id/docs/tutorial/static-files.md`. PR [#&#8203;13092](https://github.com/fastapi/fastapi/pull/13092) by [@&#8203;guspan-tanadi](https://github.com/guspan-tanadi). - 🌐 Add Portuguese translation for `docs/pt/docs/tutorial/security/get-current-user.md`. PR [#&#8203;13188](https://github.com/fastapi/fastapi/pull/13188) by [@&#8203;ceb10n](https://github.com/ceb10n). - 🌐 Remove Wrong Portuguese translations location for `docs/pt/docs/advanced/benchmarks.md`. PR [#&#8203;13187](https://github.com/fastapi/fastapi/pull/13187) by [@&#8203;ceb10n](https://github.com/ceb10n). - 🌐 Update Portuguese translations. PR [#&#8203;13156](https://github.com/fastapi/fastapi/pull/13156) by [@&#8203;nillvitor](https://github.com/nillvitor). - 🌐 Update Russian translation for `docs/ru/docs/tutorial/security/first-steps.md`. PR [#&#8203;13159](https://github.com/fastapi/fastapi/pull/13159) by [@&#8203;Yarous](https://github.com/Yarous). - ✏️ Delete unnecessary backspace in `docs/ja/docs/tutorial/path-params-numeric-validations.md`. PR [#&#8203;12238](https://github.com/fastapi/fastapi/pull/12238) by [@&#8203;FakeDocument](https://github.com/FakeDocument). - 🌐 Update Chinese translation for `docs/zh/docs/fastapi-cli.md`. PR [#&#8203;13102](https://github.com/fastapi/fastapi/pull/13102) by [@&#8203;Zhongheng-Cheng](https://github.com/Zhongheng-Cheng). - 🌐 Add new Spanish translations for all docs with new LLM-assisted system using PydanticAI. PR [#&#8203;13122](https://github.com/fastapi/fastapi/pull/13122) by [@&#8203;tiangolo](https://github.com/tiangolo). - 🌐 Update existing Spanish translations using the new LLM-assisted system using PydanticAI. PR [#&#8203;13118](https://github.com/fastapi/fastapi/pull/13118) by [@&#8203;tiangolo](https://github.com/tiangolo). - 🌐 Update Chinese translation for `docs/zh/docs/advanced/security/oauth2-scopes.md`. PR [#&#8203;13110](https://github.com/fastapi/fastapi/pull/13110) by [@&#8203;ChenPu2002](https://github.com/ChenPu2002). - 🌐 Add Indonesian translation for `docs/id/docs/tutorial/path-params.md`. PR [#&#8203;13086](https://github.com/fastapi/fastapi/pull/13086) by [@&#8203;gerry-sabar](https://github.com/gerry-sabar). - 🌐 Add Korean translation for `docs/ko/docs/tutorial/sql-databases.md`. PR [#&#8203;13093](https://github.com/fastapi/fastapi/pull/13093) by [@&#8203;GeumBinLee](https://github.com/GeumBinLee). - 🌐 Update Chinese translation for `docs/zh/docs/async.md`. PR [#&#8203;13095](https://github.com/fastapi/fastapi/pull/13095) by [@&#8203;Zhongheng-Cheng](https://github.com/Zhongheng-Cheng). - 🌐 Add Chinese translation for `docs/zh/docs/advanced/openapi-webhooks.md`. PR [#&#8203;13091](https://github.com/fastapi/fastapi/pull/13091) by [@&#8203;Zhongheng-Cheng](https://github.com/Zhongheng-Cheng). - 🌐 Add Chinese translation for `docs/zh/docs/advanced/async-tests.md`. PR [#&#8203;13074](https://github.com/fastapi/fastapi/pull/13074) by [@&#8203;Zhongheng-Cheng](https://github.com/Zhongheng-Cheng). - 🌐 Add Ukrainian translation for `docs/uk/docs/fastapi-cli.md`. PR [#&#8203;13020](https://github.com/fastapi/fastapi/pull/13020) by [@&#8203;ykertytsky](https://github.com/ykertytsky). - 🌐 Add Chinese translation for `docs/zh/docs/advanced/events.md`. PR [#&#8203;12512](https://github.com/fastapi/fastapi/pull/12512) by [@&#8203;ZhibangYue](https://github.com/ZhibangYue). - 🌐 Add Russian translation for `/docs/ru/docs/tutorial/sql-databases.md`. PR [#&#8203;13079](https://github.com/fastapi/fastapi/pull/13079) by [@&#8203;alv2017](https://github.com/alv2017). - 🌐 Update Chinese translation for `docs/zh/docs/advanced/testing-dependencies.md`. PR [#&#8203;13066](https://github.com/fastapi/fastapi/pull/13066) by [@&#8203;Zhongheng-Cheng](https://github.com/Zhongheng-Cheng). - 🌐 Update Traditional Chinese translation for `docs/zh-hant/docs/tutorial/index.md`. PR [#&#8203;13075](https://github.com/fastapi/fastapi/pull/13075) by [@&#8203;codingjenny](https://github.com/codingjenny). - 🌐 Add Chinese translation for `docs/zh/docs/tutorial/sql-databases.md`. PR [#&#8203;13051](https://github.com/fastapi/fastapi/pull/13051) by [@&#8203;Zhongheng-Cheng](https://github.com/Zhongheng-Cheng). - 🌐 Update Chinese translation for `docs/zh/docs/tutorial/query-params-str-validations.md`. PR [#&#8203;12928](https://github.com/fastapi/fastapi/pull/12928) by [@&#8203;Vincy1230](https://github.com/Vincy1230). - 🌐 Add Chinese translation for `docs/zh/docs/tutorial/header-param-models.md`. PR [#&#8203;13040](https://github.com/fastapi/fastapi/pull/13040) by [@&#8203;Zhongheng-Cheng](https://github.com/Zhongheng-Cheng). - 🌐 Update Chinese translation for `docs/zh/docs/tutorial/path-params.md`. PR [#&#8203;12926](https://github.com/fastapi/fastapi/pull/12926) by [@&#8203;Vincy1230](https://github.com/Vincy1230). - 🌐 Update Chinese translation for `docs/zh/docs/tutorial/first-steps.md`. PR [#&#8203;12923](https://github.com/fastapi/fastapi/pull/12923) by [@&#8203;Vincy1230](https://github.com/Vincy1230). - 🌐 Update Russian translation for `docs/ru/docs/deployment/docker.md`. PR [#&#8203;13048](https://github.com/fastapi/fastapi/pull/13048) by [@&#8203;anklav24](https://github.com/anklav24). - 🌐 Add Portuguese translation for `docs/pt/docs/advanced/generate-clients.md`. PR [#&#8203;13030](https://github.com/fastapi/fastapi/pull/13030) by [@&#8203;vitumenezes](https://github.com/vitumenezes). - 🌐 Add Indonesian translation for `docs/id/docs/tutorial/first-steps.md`. PR [#&#8203;13042](https://github.com/fastapi/fastapi/pull/13042) by [@&#8203;gerry-sabar](https://github.com/gerry-sabar). - 🌐 Add Chinese translation for `docs/zh/docs/tutorial/cookie-param-models.md`. PR [#&#8203;13038](https://github.com/fastapi/fastapi/pull/13038) by [@&#8203;Zhongheng-Cheng](https://github.com/Zhongheng-Cheng). - 🌐 Add Chinese translation for `docs/zh/docs/tutorial/request-form-models.md`. PR [#&#8203;13045](https://github.com/fastapi/fastapi/pull/13045) by [@&#8203;Zhongheng-Cheng](https://github.com/Zhongheng-Cheng). - 🌐 Add Russian translation for `docs/ru/docs/virtual-environments.md`. PR [#&#8203;13026](https://github.com/fastapi/fastapi/pull/13026) by [@&#8203;alv2017](https://github.com/alv2017). - 🌐 Add Korean translation for `docs/ko/docs/tutorial/testing.md`. PR [#&#8203;12968](https://github.com/fastapi/fastapi/pull/12968) by [@&#8203;jts8257](https://github.com/jts8257). - 🌐 Add Korean translation for `docs/ko/docs/advanced/async-test.md`. PR [#&#8203;12918](https://github.com/fastapi/fastapi/pull/12918) by [@&#8203;icehongssii](https://github.com/icehongssii). - 🌐 Add Russian translation for `docs/ru/docs/tutorial/security/oauth2-jwt.md`. PR [#&#8203;10601](https://github.com/fastapi/fastapi/pull/10601) by [@&#8203;AlertRED](https://github.com/AlertRED). - 🌐 Add Russian translation for `docs/ru/docs/tutorial/security/simple-oauth2.md`. PR [#&#8203;10599](https://github.com/fastapi/fastapi/pull/10599) by [@&#8203;AlertRED](https://github.com/AlertRED). - 🌐 Add Russian translation for `docs/ru/docs/tutorial/security/get-current-user.md`. PR [#&#8203;10594](https://github.com/fastapi/fastapi/pull/10594) by [@&#8203;AlertRED](https://github.com/AlertRED). - 🌐 Add Traditional Chinese translation for `docs/zh-hant/docs/features.md`. PR [#&#8203;12441](https://github.com/fastapi/fastapi/pull/12441) by [@&#8203;codingjenny](https://github.com/codingjenny). - 🌐 Add Traditional Chinese translation for `docs/zh-hant/docs/virtual-environments.md`. PR [#&#8203;12791](https://github.com/fastapi/fastapi/pull/12791) by [@&#8203;Vincy1230](https://github.com/Vincy1230). - 🌐 Add Korean translation for `docs/ko/docs/advanced/templates.md`. PR [#&#8203;12726](https://github.com/fastapi/fastapi/pull/12726) by [@&#8203;Heumhub](https://github.com/Heumhub). - 🌐 Add Russian translation for `docs/ru/docs/fastapi-cli.md`. PR [#&#8203;13041](https://github.com/fastapi/fastapi/pull/13041) by [@&#8203;alv2017](https://github.com/alv2017). - 🌐 Add Korean translation for `docs/ko/docs/tutorial/cookie-param-models.md`. PR [#&#8203;13000](https://github.com/fastapi/fastapi/pull/13000) by [@&#8203;hard-coders](https://github.com/hard-coders). - 🌐 Add Korean translation for `docs/ko/docs/tutorial/header-param-models.md`. PR [#&#8203;13001](https://github.com/fastapi/fastapi/pull/13001) by [@&#8203;hard-coders](https://github.com/hard-coders). - 🌐 Add Korean translation for `docs/ko/docs/tutorial/request-form-models.md`. PR [#&#8203;13002](https://github.com/fastapi/fastapi/pull/13002) by [@&#8203;hard-coders](https://github.com/hard-coders). - 🌐 Add Korean translation for `docs/ko/docs/tutorial/request-forms.md`. PR [#&#8203;13003](https://github.com/fastapi/fastapi/pull/13003) by [@&#8203;hard-coders](https://github.com/hard-coders). - 🌐 Add Korean translation for `docs/ko/docs/resources/index.md`. PR [#&#8203;13004](https://github.com/fastapi/fastapi/pull/13004) by [@&#8203;hard-coders](https://github.com/hard-coders). - 🌐 Add Korean translation for `docs/ko/docs/how-to/configure-swagger-ui.md`. PR [#&#8203;12898](https://github.com/fastapi/fastapi/pull/12898) by [@&#8203;nahyunkeem](https://github.com/nahyunkeem). - 🌐 Add Korean translation to `docs/ko/docs/advanced/additional-status-codes.md`. PR [#&#8203;12715](https://github.com/fastapi/fastapi/pull/12715) by [@&#8203;nahyunkeem](https://github.com/nahyunkeem). - 🌐 Add Traditional Chinese translation for `docs/zh-hant/docs/tutorial/first-steps.md`. PR [#&#8203;12467](https://github.com/fastapi/fastapi/pull/12467) by [@&#8203;codingjenny](https://github.com/codingjenny). ##### Internal - 🔧 Add Pydantic 2 trove classifier. PR [#&#8203;13199](https://github.com/fastapi/fastapi/pull/13199) by [@&#8203;johnthagen](https://github.com/johnthagen). - 👥 Update FastAPI People - Sponsors. PR [#&#8203;13231](https://github.com/fastapi/fastapi/pull/13231) by [@&#8203;tiangolo](https://github.com/tiangolo). - 👷 Refactor FastAPI People Sponsors to use 2 tokens. PR [#&#8203;13228](https://github.com/fastapi/fastapi/pull/13228) by [@&#8203;tiangolo](https://github.com/tiangolo). - 👷 Update token for FastAPI People - Sponsors. PR [#&#8203;13225](https://github.com/fastapi/fastapi/pull/13225) by [@&#8203;tiangolo](https://github.com/tiangolo). - 👷 Add independent CI automation for FastAPI People - Sponsors. PR [#&#8203;13221](https://github.com/fastapi/fastapi/pull/13221) by [@&#8203;tiangolo](https://github.com/tiangolo). - 👷 Add retries to Smokeshow. PR [#&#8203;13151](https://github.com/fastapi/fastapi/pull/13151) by [@&#8203;tiangolo](https://github.com/tiangolo). - 🔧 Update Speakeasy sponsor graphic. PR [#&#8203;13147](https://github.com/fastapi/fastapi/pull/13147) by [@&#8203;chailandau](https://github.com/chailandau). - 👥 Update FastAPI GitHub topic repositories. PR [#&#8203;13146](https://github.com/fastapi/fastapi/pull/13146) by [@&#8203;tiangolo](https://github.com/tiangolo). - 👷‍♀️ Add script for GitHub Topic Repositories and update External Links. PR [#&#8203;13135](https://github.com/fastapi/fastapi/pull/13135) by [@&#8203;alejsdev](https://github.com/alejsdev). - 👥 Update FastAPI People - Contributors and Translators. PR [#&#8203;13145](https://github.com/fastapi/fastapi/pull/13145) by [@&#8203;tiangolo](https://github.com/tiangolo). - ⬆ Bump markdown-include-variants from 0.0.3 to 0.0.4. PR [#&#8203;13129](https://github.com/fastapi/fastapi/pull/13129) by [@&#8203;dependabot\[bot\]](https://github.com/apps/dependabot). - ⬆ Bump inline-snapshot from 0.14.0 to 0.18.1. PR [#&#8203;13132](https://github.com/fastapi/fastapi/pull/13132) by [@&#8203;dependabot\[bot\]](https://github.com/apps/dependabot). - ⬆ Bump mkdocs-macros-plugin from 1.0.5 to 1.3.7. PR [#&#8203;13133](https://github.com/fastapi/fastapi/pull/13133) by [@&#8203;dependabot\[bot\]](https://github.com/apps/dependabot). - 🔨 Add internal scripts to generate language translations with PydanticAI, include Spanish prompt. PR [#&#8203;13123](https://github.com/fastapi/fastapi/pull/13123) by [@&#8203;tiangolo](https://github.com/tiangolo). - ⬆ Bump astral-sh/setup-uv from 4 to 5. PR [#&#8203;13096](https://github.com/fastapi/fastapi/pull/13096) by [@&#8203;dependabot\[bot\]](https://github.com/apps/dependabot). - 🔧 Update sponsors: rename CryptAPI to BlockBee. PR [#&#8203;13078](https://github.com/fastapi/fastapi/pull/13078) by [@&#8203;tiangolo](https://github.com/tiangolo). - ⬆ Bump pypa/gh-action-pypi-publish from 1.12.2 to 1.12.3. PR [#&#8203;13055](https://github.com/fastapi/fastapi/pull/13055) by [@&#8203;dependabot\[bot\]](https://github.com/apps/dependabot). - ⬆ Bump types-ujson from 5.7.0.1 to 5.10.0.20240515. PR [#&#8203;13018](https://github.com/fastapi/fastapi/pull/13018) by [@&#8203;dependabot\[bot\]](https://github.com/apps/dependabot). - ⬆ Bump black from 24.3.0 to 24.10.0. PR [#&#8203;13014](https://github.com/fastapi/fastapi/pull/13014) by [@&#8203;dependabot\[bot\]](https://github.com/apps/dependabot). - ⬆ Bump inline-snapshot from 0.13.0 to 0.14.0. PR [#&#8203;13017](https://github.com/fastapi/fastapi/pull/13017) by [@&#8203;dependabot\[bot\]](https://github.com/apps/dependabot). - ⬆ Bump dirty-equals from 0.6.0 to 0.8.0. PR [#&#8203;13015](https://github.com/fastapi/fastapi/pull/13015) by [@&#8203;dependabot\[bot\]](https://github.com/apps/dependabot). - ⬆ Bump cloudflare/wrangler-action from 3.12 to 3.13. PR [#&#8203;12996](https://github.com/fastapi/fastapi/pull/12996) by [@&#8203;dependabot\[bot\]](https://github.com/apps/dependabot). - ⬆ Bump astral-sh/setup-uv from 3 to 4. PR [#&#8203;12982](https://github.com/fastapi/fastapi/pull/12982) by [@&#8203;dependabot\[bot\]](https://github.com/apps/dependabot). - 🔧 Remove duplicate actions/checkout in `notify-translations.yml`. PR [#&#8203;12915](https://github.com/fastapi/fastapi/pull/12915) by [@&#8203;tinyboxvk](https://github.com/tinyboxvk). - 🔧 Update team members. PR [#&#8203;13033](https://github.com/fastapi/fastapi/pull/13033) by [@&#8203;tiangolo](https://github.com/tiangolo). - 📝 Update sponsors: remove Codacy. PR [#&#8203;13032](https://github.com/fastapi/fastapi/pull/13032) by [@&#8203;tiangolo](https://github.com/tiangolo). ### [`v0.115.6`](https://github.com/fastapi/fastapi/releases/tag/0.115.6) [Compare Source](https://github.com/fastapi/fastapi/compare/0.115.5...0.115.6) ##### Fixes - 🐛 Preserve traceback when an exception is raised in sync dependency with `yield`. PR [#&#8203;5823](https://github.com/fastapi/fastapi/pull/5823) by [@&#8203;sombek](https://github.com/sombek). ##### Refactors - ♻️ Update tests and internals for compatibility with Pydantic >=2.10. PR [#&#8203;12971](https://github.com/fastapi/fastapi/pull/12971) by [@&#8203;tamird](https://github.com/tamird). ##### Docs - 📝 Update includes format in docs with an automated script. PR [#&#8203;12950](https://github.com/fastapi/fastapi/pull/12950) by [@&#8203;tiangolo](https://github.com/tiangolo). - 📝 Update includes for `docs/de/docs/advanced/using-request-directly.md`. PR [#&#8203;12685](https://github.com/fastapi/fastapi/pull/12685) by [@&#8203;alissadb](https://github.com/alissadb). - 📝 Update includes for `docs/de/docs/how-to/conditional-openapi.md`. PR [#&#8203;12689](https://github.com/fastapi/fastapi/pull/12689) by [@&#8203;alissadb](https://github.com/alissadb). ##### Translations - 🌐 Add Traditional Chinese translation for `docs/zh-hant/docs/async.md`. PR [#&#8203;12990](https://github.com/fastapi/fastapi/pull/12990) by [@&#8203;ILoveSorasakiHina](https://github.com/ILoveSorasakiHina). - 🌐 Add Traditional Chinese translation for `docs/zh-hant/docs/tutorial/query-param-models.md`. PR [#&#8203;12932](https://github.com/fastapi/fastapi/pull/12932) by [@&#8203;Vincy1230](https://github.com/Vincy1230). - 🌐 Add Korean translation for `docs/ko/docs/advanced/testing-dependencies.md`. PR [#&#8203;12992](https://github.com/fastapi/fastapi/pull/12992) by [@&#8203;Limsunoh](https://github.com/Limsunoh). - 🌐 Add Korean translation for `docs/ko/docs/advanced/websockets.md`. PR [#&#8203;12991](https://github.com/fastapi/fastapi/pull/12991) by [@&#8203;kwang1215](https://github.com/kwang1215). - 🌐 Add Portuguese translation for `docs/pt/docs/tutorial/response-model.md`. PR [#&#8203;12933](https://github.com/fastapi/fastapi/pull/12933) by [@&#8203;AndreBBM](https://github.com/AndreBBM). - 🌐 Add Korean translation for `docs/ko/docs/advanced/middlewares.md`. PR [#&#8203;12753](https://github.com/fastapi/fastapi/pull/12753) by [@&#8203;nahyunkeem](https://github.com/nahyunkeem). - 🌐 Add Korean translation for `docs/ko/docs/advanced/openapi-webhooks.md`. PR [#&#8203;12752](https://github.com/fastapi/fastapi/pull/12752) by [@&#8203;saeye](https://github.com/saeye). - 🌐 Add Chinese translation for `docs/zh/docs/tutorial/query-param-models.md`. PR [#&#8203;12931](https://github.com/fastapi/fastapi/pull/12931) by [@&#8203;Vincy1230](https://github.com/Vincy1230). - 🌐 Add Russian translation for `docs/ru/docs/tutorial/query-param-models.md`. PR [#&#8203;12445](https://github.com/fastapi/fastapi/pull/12445) by [@&#8203;gitgernit](https://github.com/gitgernit). - 🌐 Add Korean translation for `docs/ko/docs/tutorial/query-param-models.md`. PR [#&#8203;12940](https://github.com/fastapi/fastapi/pull/12940) by [@&#8203;jts8257](https://github.com/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 [#&#8203;12949](https://github.com/fastapi/fastapi/pull/12949) by [@&#8203;tiangolo](https://github.com/tiangolo). ##### Internal - ⬆ \[pre-commit.ci] pre-commit autoupdate. PR [#&#8203;12954](https://github.com/fastapi/fastapi/pull/12954) by [@&#8203;pre-commit-ci\[bot\]](https://github.com/apps/pre-commit-ci). ### [`v0.115.5`](https://github.com/fastapi/fastapi/releases/tag/0.115.5) [Compare Source](https://github.com/fastapi/fastapi/compare/0.115.4...0.115.5) ##### Refactors - ♻️ Update internal checks to support Pydantic 2.10. PR [#&#8203;12914](https://github.com/fastapi/fastapi/pull/12914) by [@&#8203;tiangolo](https://github.com/tiangolo). ##### Docs - 📝 Update includes for `docs/en/docs/tutorial/body.md`. PR [#&#8203;12757](https://github.com/fastapi/fastapi/pull/12757) by [@&#8203;gsheni](https://github.com/gsheni). - 📝 Update includes in `docs/en/docs/advanced/testing-dependencies.md`. PR [#&#8203;12647](https://github.com/fastapi/fastapi/pull/12647) by [@&#8203;AyushSinghal1794](https://github.com/AyushSinghal1794). - 📝 Update includes for `docs/en/docs/tutorial/metadata.md`. PR [#&#8203;12773](https://github.com/fastapi/fastapi/pull/12773) by [@&#8203;Nimitha-jagadeesha](https://github.com/Nimitha-jagadeesha). - 📝 Update `docs/en/docs/tutorial/dependencies/dependencies-with-yield.md`. PR [#&#8203;12045](https://github.com/fastapi/fastapi/pull/12045) by [@&#8203;xuvjso](https://github.com/xuvjso). - 📝 Update includes for `docs/en/docs/tutorial/dependencies/global-dependencies.md`. PR [#&#8203;12653](https://github.com/fastapi/fastapi/pull/12653) by [@&#8203;vishnuvskvkl](https://github.com/vishnuvskvkl). - 📝 Update includes for `docs/en/docs/tutorial/body-updates.md`. PR [#&#8203;12712](https://github.com/fastapi/fastapi/pull/12712) by [@&#8203;davioc](https://github.com/davioc). - 📝 Remove mention of Celery in the project generators. PR [#&#8203;12742](https://github.com/fastapi/fastapi/pull/12742) by [@&#8203;david-caro](https://github.com/david-caro). - 📝 Update includes in `docs/en/docs/tutorial/header-param-models.md`. PR [#&#8203;12814](https://github.com/fastapi/fastapi/pull/12814) by [@&#8203;zhaohan-dong](https://github.com/zhaohan-dong). - 📝 Update `contributing.md` docs, include note to not translate this page. PR [#&#8203;12841](https://github.com/fastapi/fastapi/pull/12841) by [@&#8203;tiangolo](https://github.com/tiangolo). - 📝 Update includes in `docs/en/docs/tutorial/request-forms.md`. PR [#&#8203;12648](https://github.com/fastapi/fastapi/pull/12648) by [@&#8203;vishnuvskvkl](https://github.com/vishnuvskvkl). - 📝 Update includes in `docs/en/docs/tutorial/request-form-models.md`. PR [#&#8203;12649](https://github.com/fastapi/fastapi/pull/12649) by [@&#8203;vishnuvskvkl](https://github.com/vishnuvskvkl). - 📝 Update includes in `docs/en/docs/tutorial/security/oauth2-jwt.md`. PR [#&#8203;12650](https://github.com/fastapi/fastapi/pull/12650) by [@&#8203;OCE1960](https://github.com/OCE1960). - 📝 Update includes in `docs/vi/docs/tutorial/first-steps.md`. PR [#&#8203;12754](https://github.com/fastapi/fastapi/pull/12754) by [@&#8203;MxPy](https://github.com/MxPy). - 📝 Update includes for `docs/pt/docs/advanced/wsgi.md`. PR [#&#8203;12769](https://github.com/fastapi/fastapi/pull/12769) by [@&#8203;Nimitha-jagadeesha](https://github.com/Nimitha-jagadeesha). - 📝 Update includes for `docs/en/docs/tutorial/dependencies/dependencies-in-path-operation-decorators.md`. PR [#&#8203;12815](https://github.com/fastapi/fastapi/pull/12815) by [@&#8203;handabaldeep](https://github.com/handabaldeep). - 📝 Update includes for `docs/en/docs/tutorial/dependencies/classes-as-dependencies.md`. PR [#&#8203;12813](https://github.com/fastapi/fastapi/pull/12813) by [@&#8203;handabaldeep](https://github.com/handabaldeep). - ✏️ Fix error in `docs/en/docs/tutorial/middleware.md`. PR [#&#8203;12819](https://github.com/fastapi/fastapi/pull/12819) by [@&#8203;alejsdev](https://github.com/alejsdev). - 📝 Update includes for `docs/en/docs/tutorial/security/get-current-user.md`. PR [#&#8203;12645](https://github.com/fastapi/fastapi/pull/12645) by [@&#8203;OCE1960](https://github.com/OCE1960). - 📝 Update includes for `docs/en/docs/tutorial/security/first-steps.md`. PR [#&#8203;12643](https://github.com/fastapi/fastapi/pull/12643) by [@&#8203;OCE1960](https://github.com/OCE1960). - 📝 Update includes in `docs/de/docs/advanced/additional-responses.md`. PR [#&#8203;12821](https://github.com/fastapi/fastapi/pull/12821) by [@&#8203;zhaohan-dong](https://github.com/zhaohan-dong). - 📝 Update includes in `docs/en/docs/advanced/generate-clients.md`. PR [#&#8203;12642](https://github.com/fastapi/fastapi/pull/12642) by [@&#8203;AyushSinghal1794](https://github.com/AyushSinghal1794). - 📝 Fix admonition double quotes with new syntax. PR [#&#8203;12835](https://github.com/fastapi/fastapi/pull/12835) by [@&#8203;tiangolo](https://github.com/tiangolo). - 📝 Update includes in `docs/zh/docs/advanced/additional-responses.md`. PR [#&#8203;12828](https://github.com/fastapi/fastapi/pull/12828) by [@&#8203;zhaohan-dong](https://github.com/zhaohan-dong). - 📝 Update includes in `docs/en/docs/tutorial/path-params-numeric-validations.md`. PR [#&#8203;12825](https://github.com/fastapi/fastapi/pull/12825) by [@&#8203;zhaohan-dong](https://github.com/zhaohan-dong). - 📝 Update includes for `docs/en/docs/advanced/testing-websockets.md`. PR [#&#8203;12761](https://github.com/fastapi/fastapi/pull/12761) by [@&#8203;hamidrasti](https://github.com/hamidrasti). - 📝 Update includes for `docs/en/docs/advanced/using-request-directly.md`. PR [#&#8203;12760](https://github.com/fastapi/fastapi/pull/12760) by [@&#8203;hamidrasti](https://github.com/hamidrasti). - 📝 Update includes for `docs/advanced/wsgi.md`. PR [#&#8203;12758](https://github.com/fastapi/fastapi/pull/12758) by [@&#8203;hamidrasti](https://github.com/hamidrasti). - 📝 Update includes in `docs/de/docs/tutorial/middleware.md`. PR [#&#8203;12729](https://github.com/fastapi/fastapi/pull/12729) by [@&#8203;paintdog](https://github.com/paintdog). - 📝 Update includes for `docs/en/docs/tutorial/schema-extra-example.md`. PR [#&#8203;12822](https://github.com/fastapi/fastapi/pull/12822) by [@&#8203;tiangolo](https://github.com/tiangolo). - 📝 Update includes in `docs/fr/docs/advanced/additional-responses.md`. PR [#&#8203;12634](https://github.com/fastapi/fastapi/pull/12634) by [@&#8203;fegmorte](https://github.com/fegmorte). - 📝 Update includes in `docs/fr/docs/advanced/path-operation-advanced-configuration.md`. PR [#&#8203;12633](https://github.com/fastapi/fastapi/pull/12633) by [@&#8203;kantandane](https://github.com/kantandane). - 📝 Update includes in `docs/fr/docs/advanced/response-directly.md`. PR [#&#8203;12632](https://github.com/fastapi/fastapi/pull/12632) by [@&#8203;kantandane](https://github.com/kantandane). - 📝 Update includes for `docs/en/docs/tutorial/header-params.md`. PR [#&#8203;12640](https://github.com/fastapi/fastapi/pull/12640) by [@&#8203;vishnuvskvkl](https://github.com/vishnuvskvkl). - 📝 Update includes in `docs/en/docs/tutorial/cookie-param-models.md`. PR [#&#8203;12639](https://github.com/fastapi/fastapi/pull/12639) by [@&#8203;vishnuvskvkl](https://github.com/vishnuvskvkl). - 📝 Update includes for `docs/en/docs/tutorial/extra-models.md`. PR [#&#8203;12638](https://github.com/fastapi/fastapi/pull/12638) by [@&#8203;vishnuvskvkl](https://github.com/vishnuvskvkl). - 📝 Update includes for `docs/en/docs/tutorial/cors.md`. PR [#&#8203;12637](https://github.com/fastapi/fastapi/pull/12637) by [@&#8203;vishnuvskvkl](https://github.com/vishnuvskvkl). - 📝 Update includes for `docs/en/docs/tutorial/dependencies/sub-dependencies.md`. PR [#&#8203;12810](https://github.com/fastapi/fastapi/pull/12810) by [@&#8203;handabaldeep](https://github.com/handabaldeep). - 📝 Update includes in `docs/en/docs/tutorial/body-nested-models.md`. PR [#&#8203;12812](https://github.com/fastapi/fastapi/pull/12812) by [@&#8203;zhaohan-dong](https://github.com/zhaohan-dong). - 📝 Update includes in `docs/en/docs/tutorial/path-operation-configuration.md`. PR [#&#8203;12809](https://github.com/fastapi/fastapi/pull/12809) by [@&#8203;AlexWendland](https://github.com/AlexWendland). - 📝 Update includes in `docs/en/docs/tutorial/request-files.md`. PR [#&#8203;12818](https://github.com/fastapi/fastapi/pull/12818) by [@&#8203;zhaohan-dong](https://github.com/zhaohan-dong). - 📝 Update includes for `docs/en/docs/tutorial/query-param-models.md`. PR [#&#8203;12817](https://github.com/fastapi/fastapi/pull/12817) by [@&#8203;handabaldeep](https://github.com/handabaldeep). - 📝 Update includes in `docs/en/docs/tutorial/path-params.md`. PR [#&#8203;12811](https://github.com/fastapi/fastapi/pull/12811) by [@&#8203;AlexWendland](https://github.com/AlexWendland). - 📝 Update includes in `docs/en/docs/tutorial/response-model.md`. PR [#&#8203;12621](https://github.com/fastapi/fastapi/pull/12621) by [@&#8203;kantandane](https://github.com/kantandane). - 📝 Update includes in `docs/en/docs/advanced/websockets.md`. PR [#&#8203;12606](https://github.com/fastapi/fastapi/pull/12606) by [@&#8203;vishnuvskvkl](https://github.com/vishnuvskvkl). - 📝 Updates include for `docs/en/docs/tutorial/cookie-params.md`. PR [#&#8203;12808](https://github.com/fastapi/fastapi/pull/12808) by [@&#8203;handabaldeep](https://github.com/handabaldeep). - 📝 Update includes in `docs/en/docs/tutorial/middleware.md`. PR [#&#8203;12807](https://github.com/fastapi/fastapi/pull/12807) by [@&#8203;AlexWendland](https://github.com/AlexWendland). - 📝 Update includes in `docs/en/docs/advanced/sub-applications.md`. PR [#&#8203;12806](https://github.com/fastapi/fastapi/pull/12806) by [@&#8203;zhaohan-dong](https://github.com/zhaohan-dong). - 📝 Update includes in `docs/en/docs/advanced/response-headers.md`. PR [#&#8203;12805](https://github.com/fastapi/fastapi/pull/12805) by [@&#8203;zhaohan-dong](https://github.com/zhaohan-dong). - 📝 Update includes in `docs/fr/docs/tutorial/first-steps.md`. PR [#&#8203;12594](https://github.com/fastapi/fastapi/pull/12594) by [@&#8203;kantandane](https://github.com/kantandane). - 📝 Update includes in `docs/en/docs/advanced/response-cookies.md`. PR [#&#8203;12804](https://github.com/fastapi/fastapi/pull/12804) by [@&#8203;zhaohan-dong](https://github.com/zhaohan-dong). - 📝 Update includes in `docs/en/docs/advanced/path-operation-advanced-configuration.md`. PR [#&#8203;12802](https://github.com/fastapi/fastapi/pull/12802) by [@&#8203;zhaohan-dong](https://github.com/zhaohan-dong). - 📝 Update includes for `docs/en/docs/advanced/response-directly.md`. PR [#&#8203;12803](https://github.com/fastapi/fastapi/pull/12803) by [@&#8203;handabaldeep](https://github.com/handabaldeep). - 📝 Update includes in `docs/zh/docs/tutorial/background-tasks.md`. PR [#&#8203;12798](https://github.com/fastapi/fastapi/pull/12798) by [@&#8203;zhaohan-dong](https://github.com/zhaohan-dong). - 📝 Update includes for `docs/de/docs/tutorial/body-multiple-params.md`. PR [#&#8203;12699](https://github.com/fastapi/fastapi/pull/12699) by [@&#8203;alissadb](https://github.com/alissadb). - 📝 Update includes in `docs/em/docs/tutorial/body-updates.md`. PR [#&#8203;12799](https://github.com/fastapi/fastapi/pull/12799) by [@&#8203;AlexWendland](https://github.com/AlexWendland). - 📝 Update includes `docs/en/docs/advanced/response-change-status-code.md`. PR [#&#8203;12801](https://github.com/fastapi/fastapi/pull/12801) by [@&#8203;handabaldeep](https://github.com/handabaldeep). - 📝 Update includes `docs/en/docs/advanced/openapi-callbacks.md`. PR [#&#8203;12800](https://github.com/fastapi/fastapi/pull/12800) by [@&#8203;handabaldeep](https://github.com/handabaldeep). - 📝 Update includes in `docs/fr/docs/tutorial/body-multiple-params.md`. PR [#&#8203;12598](https://github.com/fastapi/fastapi/pull/12598) by [@&#8203;kantandane](https://github.com/kantandane). - 📝 Update includes in `docs/en/docs/tutorial/body-multiple-params.md`. PR [#&#8203;12593](https://github.com/fastapi/fastapi/pull/12593) by [@&#8203;Tashanam-Shahbaz](https://github.com/Tashanam-Shahbaz). - 📝 Update includes in `docs/pt/docs/tutorial/background-tasks.md`. PR [#&#8203;12736](https://github.com/fastapi/fastapi/pull/12736) by [@&#8203;bhunao](https://github.com/bhunao). - 📝 Update includes for `docs/en/docs/advanced/custom-response.md`. PR [#&#8203;12797](https://github.com/fastapi/fastapi/pull/12797) by [@&#8203;handabaldeep](https://github.com/handabaldeep). - 📝 Update includes for `docs/pt/docs/python-types.md`. PR [#&#8203;12671](https://github.com/fastapi/fastapi/pull/12671) by [@&#8203;ceb10n](https://github.com/ceb10n). - 📝 Update includes for `docs/de/docs/python-types.md`. PR [#&#8203;12660](https://github.com/fastapi/fastapi/pull/12660) by [@&#8203;alissadb](https://github.com/alissadb). - 📝 Update includes for `docs/de/docs/advanced/dataclasses.md`. PR [#&#8203;12658](https://github.com/fastapi/fastapi/pull/12658) by [@&#8203;alissadb](https://github.com/alissadb). - 📝 Update includes in `docs/fr/docs/tutorial/path-params.md`. PR [#&#8203;12592](https://github.com/fastapi/fastapi/pull/12592) by [@&#8203;kantandane](https://github.com/kantandane). - 📝 Update includes for `docs/de/docs/how-to/configure-swagger-ui.md`. PR [#&#8203;12690](https://github.com/fastapi/fastapi/pull/12690) by [@&#8203;alissadb](https://github.com/alissadb). - 📝 Update includes in `docs/en/docs/advanced/security/oauth2-scopes.md`. PR [#&#8203;12572](https://github.com/fastapi/fastapi/pull/12572) by [@&#8203;krishnamadhavan](https://github.com/krishnamadhavan). - 📝 Update includes for `docs/en/docs/how-to/conditional-openapi.md`. PR [#&#8203;12624](https://github.com/fastapi/fastapi/pull/12624) by [@&#8203;rabinlamadong](https://github.com/rabinlamadong). - 📝 Update includes in `docs/en/docs/tutorial/dependencies/index.md`. PR [#&#8203;12615](https://github.com/fastapi/fastapi/pull/12615) by [@&#8203;bharara](https://github.com/bharara). - 📝 Update includes in `docs/en/docs/tutorial/response-status-code.md`. PR [#&#8203;12620](https://github.com/fastapi/fastapi/pull/12620) by [@&#8203;kantandane](https://github.com/kantandane). - 📝 Update includes in `docs/en/docs/how-to/custom-docs-ui-assets.md`. PR [#&#8203;12623](https://github.com/fastapi/fastapi/pull/12623) by [@&#8203;rabinlamadong](https://github.com/rabinlamadong). - 📝 Update includes in `docs/en/docs/advanced/openapi-webhooks.md`. PR [#&#8203;12605](https://github.com/fastapi/fastapi/pull/12605) by [@&#8203;salmantec](https://github.com/salmantec). - 📝 Update includes in `docs/en/docs/advanced/events.md`. PR [#&#8203;12604](https://github.com/fastapi/fastapi/pull/12604) by [@&#8203;salmantec](https://github.com/salmantec). - 📝 Update includes in `docs/en/docs/advanced/dataclasses.md`. PR [#&#8203;12603](https://github.com/fastapi/fastapi/pull/12603) by [@&#8203;salmantec](https://github.com/salmantec). - 📝 Update includes in `docs/es/docs/tutorial/cookie-params.md`. PR [#&#8203;12602](https://github.com/fastapi/fastapi/pull/12602) by [@&#8203;antonyare93](https://github.com/antonyare93). - 📝 Update includes in `docs/fr/docs/tutorial/path-params-numeric-validations.md`. PR [#&#8203;12601](https://github.com/fastapi/fastapi/pull/12601) by [@&#8203;kantandane](https://github.com/kantandane). - 📝 Update includes in `docs/fr/docs/tutorial/background-tasks.md`. PR [#&#8203;12600](https://github.com/fastapi/fastapi/pull/12600) by [@&#8203;kantandane](https://github.com/kantandane). - 📝 Update includes in `docs/en/docs/tutorial/encoder.md`. PR [#&#8203;12597](https://github.com/fastapi/fastapi/pull/12597) by [@&#8203;tonyjly](https://github.com/tonyjly). - 📝 Update includes in `docs/en/docs/how-to/custom-docs-ui-assets.md`. PR [#&#8203;12557](https://github.com/fastapi/fastapi/pull/12557) by [@&#8203;philipokiokio](https://github.com/philipokiokio). - 🎨 Adjust spacing. PR [#&#8203;12635](https://github.com/fastapi/fastapi/pull/12635) by [@&#8203;alejsdev](https://github.com/alejsdev). - 📝 Update includes in `docs/en/docs/how-to/custom-request-and-route.md`. PR [#&#8203;12560](https://github.com/fastapi/fastapi/pull/12560) by [@&#8203;philipokiokio](https://github.com/philipokiokio). ##### Translations - 🌐 Add Korean translation for `docs/ko/docs/advanced/testing-websockets.md`. PR [#&#8203;12739](https://github.com/fastapi/fastapi/pull/12739) by [@&#8203;Limsunoh](https://github.com/Limsunoh). - 🌐 Add Traditional Chinese translation for `docs/zh-hant/docs/environment-variables.md`. PR [#&#8203;12785](https://github.com/fastapi/fastapi/pull/12785) by [@&#8203;Vincy1230](https://github.com/Vincy1230). - 🌐 Add Chinese translation for `docs/zh/docs/environment-variables.md`. PR [#&#8203;12784](https://github.com/fastapi/fastapi/pull/12784) by [@&#8203;Vincy1230](https://github.com/Vincy1230). - 🌐 Add Korean translation for `ko/docs/advanced/response-headers.md`. PR [#&#8203;12740](https://github.com/fastapi/fastapi/pull/12740) by [@&#8203;kwang1215](https://github.com/kwang1215). - 🌐 Add Chinese translation for `docs/zh/docs/virtual-environments.md`. PR [#&#8203;12790](https://github.com/fastapi/fastapi/pull/12790) by [@&#8203;Vincy1230](https://github.com/Vincy1230). - 🌐 Add Korean translation for `/docs/ko/docs/environment-variables.md`. PR [#&#8203;12526](https://github.com/fastapi/fastapi/pull/12526) by [@&#8203;Tolerblanc](https://github.com/Tolerblanc). - 🌐 Add Korean translation for `docs/ko/docs/history-design-future.md`. PR [#&#8203;12646](https://github.com/fastapi/fastapi/pull/12646) by [@&#8203;saeye](https://github.com/saeye). - 🌐 Add Korean translation for `docs/ko/docs/advanced/advanced-dependencies.md`. PR [#&#8203;12675](https://github.com/fastapi/fastapi/pull/12675) by [@&#8203;kim-sangah](https://github.com/kim-sangah). - 🌐 Add Korean translation for `docs/ko/docs/how-to/conditional-openapi.md`. PR [#&#8203;12731](https://github.com/fastapi/fastapi/pull/12731) by [@&#8203;sptcnl](https://github.com/sptcnl). - 🌐 Add Korean translation for `docs/ko/docs/advanced/using_request_directly.md`. PR [#&#8203;12738](https://github.com/fastapi/fastapi/pull/12738) by [@&#8203;kwang1215](https://github.com/kwang1215). - 🌐 Add Korean translation for `docs/ko/docs/advanced/testing-events.md`. PR [#&#8203;12741](https://github.com/fastapi/fastapi/pull/12741) by [@&#8203;9zimin9](https://github.com/9zimin9). - 🌐 Add Korean translation for `docs/ko/docs/security/index.md`. PR [#&#8203;12743](https://github.com/fastapi/fastapi/pull/12743) by [@&#8203;kim-sangah](https://github.com/kim-sangah). - 🌐 Add Portuguese translation for `docs/pt/docs/advanced/path-operation-advanced-configuration.md`. PR [#&#8203;12762](https://github.com/fastapi/fastapi/pull/12762) by [@&#8203;Joao-Pedro-P-Holanda](https://github.com/Joao-Pedro-P-Holanda). - 🌐 Add Korean translation for `docs/ko/docs/advanced/wsgi.md`. PR [#&#8203;12659](https://github.com/fastapi/fastapi/pull/12659) by [@&#8203;Limsunoh](https://github.com/Limsunoh). - 🌐 Add Portuguese translation for `docs/pt/docs/advanced/websockets.md`. PR [#&#8203;12703](https://github.com/fastapi/fastapi/pull/12703) by [@&#8203;devfernandoa](https://github.com/devfernandoa). - 🌐 Add Portuguese translation for `docs/pt/docs/tutorial/security/simple-oauth2.md`. PR [#&#8203;12520](https://github.com/fastapi/fastapi/pull/12520) by [@&#8203;LidiaDomingos](https://github.com/LidiaDomingos). - 🌐 Add Korean translation for `docs/ko/docs/advanced/response-directly.md`. PR [#&#8203;12674](https://github.com/fastapi/fastapi/pull/12674) by [@&#8203;9zimin9](https://github.com/9zimin9). - 🌐 Add Portuguese translation for `docs/pt/docs/advanced/middleware.md`. PR [#&#8203;12704](https://github.com/fastapi/fastapi/pull/12704) by [@&#8203;devluisrodrigues](https://github.com/devluisrodrigues). - 🌐 Add Portuguese translation for `docs/pt/docs/advanced/openapi-callbacks.md`. PR [#&#8203;12705](https://github.com/fastapi/fastapi/pull/12705) by [@&#8203;devfernandoa](https://github.com/devfernandoa). - 🌐 Add Portuguese translation for `docs/pt/docs/tutorial/request-files.md`. PR [#&#8203;12706](https://github.com/fastapi/fastapi/pull/12706) by [@&#8203;devluisrodrigues](https://github.com/devluisrodrigues). - 🌐 Add Portuguese Translation for `docs/pt/docs/advanced/custom-response.md`. PR [#&#8203;12631](https://github.com/fastapi/fastapi/pull/12631) by [@&#8203;Joao-Pedro-P-Holanda](https://github.com/Joao-Pedro-P-Holanda). - 🌐 Add Portuguese translation for `docs/pt/docs/tutorial/metadata.md`. PR [#&#8203;12538](https://github.com/fastapi/fastapi/pull/12538) by [@&#8203;LinkolnR](https://github.com/LinkolnR). - 🌐 Add Korean translation for `docs/ko/docs/tutorial/metadata.md`. PR [#&#8203;12541](https://github.com/fastapi/fastapi/pull/12541) by [@&#8203;kwang1215](https://github.com/kwang1215). - 🌐 Add Korean Translation for `docs/ko/docs/advanced/response-cookies.md`. PR [#&#8203;12546](https://github.com/fastapi/fastapi/pull/12546) by [@&#8203;kim-sangah](https://github.com/kim-sangah). - 🌐 Add Korean translation for `docs/ko/docs/fastapi-cli.md`. PR [#&#8203;12515](https://github.com/fastapi/fastapi/pull/12515) by [@&#8203;dhdld](https://github.com/dhdld). - 🌐 Add Korean Translation for `docs/ko/docs/advanced/response-change-status-code.md`. PR [#&#8203;12547](https://github.com/fastapi/fastapi/pull/12547) by [@&#8203;9zimin9](https://github.com/9zimin9). ##### Internal - ⬆ \[pre-commit.ci] pre-commit autoupdate. PR [#&#8203;12907](https://github.com/fastapi/fastapi/pull/12907) by [@&#8203;pre-commit-ci\[bot\]](https://github.com/apps/pre-commit-ci). - 🔨 Update docs preview script to show previous version and English version. PR [#&#8203;12856](https://github.com/fastapi/fastapi/pull/12856) by [@&#8203;tiangolo](https://github.com/tiangolo). - ⬆ Bump tiangolo/latest-changes from 0.3.1 to 0.3.2. PR [#&#8203;12794](https://github.com/fastapi/fastapi/pull/12794) by [@&#8203;dependabot\[bot\]](https://github.com/apps/dependabot). - ⬆ Bump pypa/gh-action-pypi-publish from 1.12.0 to 1.12.2. PR [#&#8203;12788](https://github.com/fastapi/fastapi/pull/12788) by [@&#8203;dependabot\[bot\]](https://github.com/apps/dependabot). - ⬆ Bump pypa/gh-action-pypi-publish from 1.11.0 to 1.12.0. PR [#&#8203;12781](https://github.com/fastapi/fastapi/pull/12781) by [@&#8203;dependabot\[bot\]](https://github.com/apps/dependabot). - ⬆ Bump cloudflare/wrangler-action from 3.11 to 3.12. PR [#&#8203;12777](https://github.com/fastapi/fastapi/pull/12777) by [@&#8203;dependabot\[bot\]](https://github.com/apps/dependabot). - ⬆ \[pre-commit.ci] pre-commit autoupdate. PR [#&#8203;12766](https://github.com/fastapi/fastapi/pull/12766) by [@&#8203;pre-commit-ci\[bot\]](https://github.com/apps/pre-commit-ci). - ⬆ Bump pypa/gh-action-pypi-publish from 1.10.3 to 1.11.0. PR [#&#8203;12721](https://github.com/fastapi/fastapi/pull/12721) by [@&#8203;dependabot\[bot\]](https://github.com/apps/dependabot). - ⬆ Update pre-commit requirement from <4.0.0,>=2.17.0 to >=2.17.0,<5.0.0. PR [#&#8203;12749](https://github.com/fastapi/fastapi/pull/12749) by [@&#8203;dependabot\[bot\]](https://github.com/apps/dependabot). - ⬆ Bump typer from 0.12.3 to 0.12.5. PR [#&#8203;12748](https://github.com/fastapi/fastapi/pull/12748) by [@&#8203;dependabot\[bot\]](https://github.com/apps/dependabot). - ⬆ Update flask requirement from <3.0.0,>=1.1.2 to >=1.1.2,<4.0.0. PR [#&#8203;12747](https://github.com/fastapi/fastapi/pull/12747) by [@&#8203;dependabot\[bot\]](https://github.com/apps/dependabot). - ⬆ Bump pillow from 10.4.0 to 11.0.0. PR [#&#8203;12746](https://github.com/fastapi/fastapi/pull/12746) by [@&#8203;dependabot\[bot\]](https://github.com/apps/dependabot). - ⬆ Update pytest requirement from <8.0.0,>=7.1.3 to >=7.1.3,<9.0.0. PR [#&#8203;12745](https://github.com/fastapi/fastapi/pull/12745) by [@&#8203;dependabot\[bot\]](https://github.com/apps/dependabot). - 🔧 Update sponsors: add Render. PR [#&#8203;12733](https://github.com/fastapi/fastapi/pull/12733) by [@&#8203;tiangolo](https://github.com/tiangolo). - ⬆ \[pre-commit.ci] pre-commit autoupdate. PR [#&#8203;12707](https://github.com/fastapi/fastapi/pull/12707) by [@&#8203;pre-commit-ci\[bot\]](https://github.com/apps/pre-commit-ci). ### [`v0.115.4`](https://github.com/fastapi/fastapi/releases/tag/0.115.4) [Compare Source](https://github.com/fastapi/fastapi/compare/0.115.3...0.115.4) ##### Refactors - ♻️ Update logic to import and check `python-multipart` for compatibility with newer version. PR [#&#8203;12627](https://github.com/fastapi/fastapi/pull/12627) by [@&#8203;tiangolo](https://github.com/tiangolo). ##### Docs - 📝 Update includes in `docs/fr/docs/tutorial/body.md`. PR [#&#8203;12596](https://github.com/fastapi/fastapi/pull/12596) by [@&#8203;kantandane](https://github.com/kantandane). - 📝 Update includes in `docs/fr/docs/tutorial/debugging.md`. PR [#&#8203;12595](https://github.com/fastapi/fastapi/pull/12595) by [@&#8203;kantandane](https://github.com/kantandane). - 📝 Update includes in `docs/fr/docs/tutorial/query-params-str-validations.md`. PR [#&#8203;12591](https://github.com/fastapi/fastapi/pull/12591) by [@&#8203;kantandane](https://github.com/kantandane). - 📝 Update includes in `docs/fr/docs/tutorial/query-params.md`. PR [#&#8203;12589](https://github.com/fastapi/fastapi/pull/12589) by [@&#8203;kantandane](https://github.com/kantandane). - 📝 Update includes in `docs/en/tutorial/body-fields.md`. PR [#&#8203;12588](https://github.com/fastapi/fastapi/pull/12588) by [@&#8203;lucaromagnoli](https://github.com/lucaromagnoli). - 📝 Update includes in `docs/de/docs/tutorial/response-status-code.md`. PR [#&#8203;12585](https://github.com/fastapi/fastapi/pull/12585) by [@&#8203;abejaranoh](https://github.com/abejaranoh). - 📝 Update includes in `docs/en/docs/tutorial/body.md`. PR [#&#8203;12586](https://github.com/fastapi/fastapi/pull/12586) by [@&#8203;lucaromagnoli](https://github.com/lucaromagnoli). - 📝 Update includes in `docs/en/docs/advanced/behind-a-proxy.md`. PR [#&#8203;12583](https://github.com/fastapi/fastapi/pull/12583) by [@&#8203;imjuanleonard](https://github.com/imjuanleonard). - 📝 Update includes syntax for `docs/pl/docs/tutorial/first-steps.md`. PR [#&#8203;12584](https://github.com/fastapi/fastapi/pull/12584) by [@&#8203;sebkozlo](https://github.com/sebkozlo). - 📝 Update includes in `docs/en/docs/advanced/middleware.md`. PR [#&#8203;12582](https://github.com/fastapi/fastapi/pull/12582) by [@&#8203;montanarograziano](https://github.com/montanarograziano). - 📝 Update includes in `docs/en/docs/advanced/additional-status-codes.md`. PR [#&#8203;12577](https://github.com/fastapi/fastapi/pull/12577) by [@&#8203;krishnamadhavan](https://github.com/krishnamadhavan). - 📝 Update includes in `docs/en/docs/advanced/advanced-dependencies.md`. PR [#&#8203;12578](https://github.com/fastapi/fastapi/pull/12578) by [@&#8203;krishnamadhavan](https://github.com/krishnamadhavan). - 📝 Update includes in `docs/en/docs/advanced/additional-responses.md`. PR [#&#8203;12576](https://github.com/fastapi/fastapi/pull/12576) by [@&#8203;krishnamadhavan](https://github.com/krishnamadhavan). - 📝 Update includes in `docs/en/docs/tutorial/static-files.md`. PR [#&#8203;12575](https://github.com/fastapi/fastapi/pull/12575) by [@&#8203;lucaromagnoli](https://github.com/lucaromagnoli). - 📝 Update includes in `docs/en/docs/advanced/async-tests.md`. PR [#&#8203;12568](https://github.com/fastapi/fastapi/pull/12568) by [@&#8203;krishnamadhavan](https://github.com/krishnamadhavan). - 📝 Update includes in `docs/pt/docs/advanced/behind-a-proxy.md`. PR [#&#8203;12563](https://github.com/fastapi/fastapi/pull/12563) by [@&#8203;asmioglou](https://github.com/asmioglou). - 📝 Update includes in `docs/de/docs/advanced/security/http-basic-auth.md`. PR [#&#8203;12561](https://github.com/fastapi/fastapi/pull/12561) by [@&#8203;Nimitha-jagadeesha](https://github.com/Nimitha-jagadeesha). - 📝 Update includes in `docs/en/docs/tutorial/background-tasks.md`. PR [#&#8203;12559](https://github.com/fastapi/fastapi/pull/12559) by [@&#8203;FarhanAliRaza](https://github.com/FarhanAliRaza). - 📝 Update includes in `docs/fr/docs/python-types.md`. PR [#&#8203;12558](https://github.com/fastapi/fastapi/pull/12558) by [@&#8203;Ismailtlem](https://github.com/Ismailtlem). - 📝 Update includes in `docs/en/docs/how-to/graphql.md`. PR [#&#8203;12564](https://github.com/fastapi/fastapi/pull/12564) by [@&#8203;philipokiokio](https://github.com/philipokiokio). - 📝 Update includes in `docs/en/docs/how-to/extending-openapi.md`. PR [#&#8203;12562](https://github.com/fastapi/fastapi/pull/12562) by [@&#8203;philipokiokio](https://github.com/philipokiokio). - 📝 Update includes for `docs/en/docs/how-to/configure-swagger-ui.md`. PR [#&#8203;12556](https://github.com/fastapi/fastapi/pull/12556) by [@&#8203;tiangolo](https://github.com/tiangolo). - 📝 Update includes for `docs/en/docs/how-to/separate-openapi-schemas.md`. PR [#&#8203;12555](https://github.com/fastapi/fastapi/pull/12555) by [@&#8203;tiangolo](https://github.com/tiangolo). - 📝 Update includes for `docs/en/docs/advanced/security/http-basic-auth.md`. PR [#&#8203;12553](https://github.com/fastapi/fastapi/pull/12553) by [@&#8203;tiangolo](https://github.com/tiangolo). - 📝 Update includes in `docs/en/docs/tutorial/first-steps.md`. PR [#&#8203;12552](https://github.com/fastapi/fastapi/pull/12552) by [@&#8203;tiangolo](https://github.com/tiangolo). - 📝 Update includes in `docs/en/docs/python-types.md`. PR [#&#8203;12551](https://github.com/fastapi/fastapi/pull/12551) by [@&#8203;tiangolo](https://github.com/tiangolo). - 📝 Fix link in OAuth2 docs. PR [#&#8203;12550](https://github.com/fastapi/fastapi/pull/12550) by [@&#8203;tiangolo](https://github.com/tiangolo). - 📝 Add External Link: FastAPI do Zero. PR [#&#8203;12533](https://github.com/fastapi/fastapi/pull/12533) by [@&#8203;rennerocha](https://github.com/rennerocha). - 📝 Fix minor typos. PR [#&#8203;12516](https://github.com/fastapi/fastapi/pull/12516) by [@&#8203;kkirsche](https://github.com/kkirsche). - 🌐 Fix rendering issue in translations. PR [#&#8203;12509](https://github.com/fastapi/fastapi/pull/12509) by [@&#8203;alejsdev](https://github.com/alejsdev). ##### Translations - 📝 Update includes in `docs/de/docs/advanced/async-tests.md`. PR [#&#8203;12567](https://github.com/fastapi/fastapi/pull/12567) by [@&#8203;imjuanleonard](https://github.com/imjuanleonard). - 🌐 Add Portuguese translation for `docs/pt/docs/tutorial/sql-databases.md`. PR [#&#8203;12530](https://github.com/fastapi/fastapi/pull/12530) by [@&#8203;ilacftemp](https://github.com/ilacftemp). - 🌐 Add Korean translation for `docs/ko/docs/benchmarks.md`. PR [#&#8203;12540](https://github.com/fastapi/fastapi/pull/12540) by [@&#8203;Limsunoh](https://github.com/Limsunoh). - 🌐 Add Portuguese translation for `docs/pt/docs/how-to/separate-openapi-schemas.md`. PR [#&#8203;12518](https://github.com/fastapi/fastapi/pull/12518) by [@&#8203;ilacftemp](https://github.com/ilacftemp). - 🌐 Update Traditional Chinese translation for `docs/zh-hant/docs/deployment/index.md`. PR [#&#8203;12521](https://github.com/fastapi/fastapi/pull/12521) by [@&#8203;codingjenny](https://github.com/codingjenny). - 🌐 Update Traditional Chinese translation for `docs/zh-hant/docs/deployment/cloud.md`. PR [#&#8203;12522](https://github.com/fastapi/fastapi/pull/12522) by [@&#8203;codingjenny](https://github.com/codingjenny). - 🌐 Update Traditional Chinese translation for `docs/zh-hant/docs/how-to/index.md`. PR [#&#8203;12523](https://github.com/fastapi/fastapi/pull/12523) by [@&#8203;codingjenny](https://github.com/codingjenny). - 🌐 Update Traditional Chinese translation for `docs/zh-hant/docs/tutorial/index.md`. PR [#&#8203;12524](https://github.com/fastapi/fastapi/pull/12524) by [@&#8203;codingjenny](https://github.com/codingjenny). - 🌐 Add Traditional Chinese translation for `docs/zh-hant/docs/how-to/index.md`. PR [#&#8203;12468](https://github.com/fastapi/fastapi/pull/12468) by [@&#8203;codingjenny](https://github.com/codingjenny). - 🌐 Add Traditional Chinese translation for `docs/zh-hant/docs/tutorial/index.md`. PR [#&#8203;12466](https://github.com/fastapi/fastapi/pull/12466) by [@&#8203;codingjenny](https://github.com/codingjenny). - 🌐 Add Portuguese translation for `docs/pt/docs/tutorial/header-param-models.md`. PR [#&#8203;12437](https://github.com/fastapi/fastapi/pull/12437) by [@&#8203;Joao-Pedro-P-Holanda](https://github.com/Joao-Pedro-P-Holanda). - 🌐 Add Portuguese translation for `docs/pt/docs/how-to/extending-openapi.md`. PR [#&#8203;12470](https://github.com/fastapi/fastapi/pull/12470) by [@&#8203;ilacftemp](https://github.com/ilacftemp). - 🌐 Add Portuguese translation for `docs/pt/docs/advanced/dataclasses.md`. PR [#&#8203;12475](https://github.com/fastapi/fastapi/pull/12475) by [@&#8203;leoscarlato](https://github.com/leoscarlato). - 🌐 Add Portuguese translation for `docs/pt/docs/how-to/custom-request-and-route.md`. PR [#&#8203;12483](https://github.com/fastapi/fastapi/pull/12483) by [@&#8203;devfernandoa](https://github.com/devfernandoa). ##### Internal - ⬆ Bump cloudflare/wrangler-action from 3.9 to 3.11. PR [#&#8203;12544](https://github.com/fastapi/fastapi/pull/12544) by [@&#8203;dependabot\[bot\]](https://github.com/apps/dependabot). - 👷 Update GitHub Action to deploy docs previews to handle missing deploy comments. PR [#&#8203;12527](https://github.com/fastapi/fastapi/pull/12527) by [@&#8203;tiangolo](https://github.com/tiangolo). - ⬆ \[pre-commit.ci] pre-commit autoupdate. PR [#&#8203;12505](https://github.com/fastapi/fastapi/pull/12505) by [@&#8203;pre-commit-ci\[bot\]](https://github.com/apps/pre-commit-ci). ### [`v0.115.3`](https://github.com/fastapi/fastapi/releases/tag/0.115.3) [Compare Source](https://github.com/fastapi/fastapi/compare/0.115.2...0.115.3) ##### Upgrades - ⬆️ Upgrade Starlette to `>=0.40.0,<0.42.0`. PR [#&#8203;12469](https://github.com/fastapi/fastapi/pull/12469) by [@&#8203;defnull](https://github.com/defnull). ##### Docs - 📝 Fix broken link in docs. PR [#&#8203;12495](https://github.com/fastapi/fastapi/pull/12495) by [@&#8203;eltonjncorreia](https://github.com/eltonjncorreia). ##### Translations - 🌐 Add Traditional Chinese translation for `docs/zh-hant/docs/fastapi-cli.md`. PR [#&#8203;12444](https://github.com/fastapi/fastapi/pull/12444) by [@&#8203;codingjenny](https://github.com/codingjenny). - 🌐 Add Traditional Chinese translation for `docs/zh-hant/docs/deployment/index.md`. PR [#&#8203;12439](https://github.com/fastapi/fastapi/pull/12439) by [@&#8203;codingjenny](https://github.com/codingjenny). - 🌐 Add Portuguese translation for `docs/pt/docs/how-to/testing-database.md`. PR [#&#8203;12472](https://github.com/fastapi/fastapi/pull/12472) by [@&#8203;GuilhermeRameh](https://github.com/GuilhermeRameh). - 🌐 Add Portuguese translation for `docs/pt/docs/how-to/custom-docs-ui-assets.md`. PR [#&#8203;12473](https://github.com/fastapi/fastapi/pull/12473) by [@&#8203;devluisrodrigues](https://github.com/devluisrodrigues). - 🌐 Add Portuguese translation for `docs/pt/docs/advanced/response-headers.md`. PR [#&#8203;12458](https://github.com/fastapi/fastapi/pull/12458) by [@&#8203;leonardopaloschi](https://github.com/leonardopaloschi). - 🌐 Add Traditional Chinese translation for `docs/zh-hant/docs/deployment/cloud.md`. PR [#&#8203;12440](https://github.com/fastapi/fastapi/pull/12440) by [@&#8203;codingjenny](https://github.com/codingjenny). - 🌐 Update Portuguese translation for `docs/pt/docs/python-types.md`. PR [#&#8203;12428](https://github.com/fastapi/fastapi/pull/12428) by [@&#8203;ceb10n](https://github.com/ceb10n). - 🌐 Add Russian translation for `docs/ru/docs/environment-variables.md`. PR [#&#8203;12436](https://github.com/fastapi/fastapi/pull/12436) by [@&#8203;wisderfin](https://github.com/wisderfin). - 🌐 Add Traditional Chinese translation for `docs/zh-hant/docs/resources/index.md`. PR [#&#8203;12443](https://github.com/fastapi/fastapi/pull/12443) by [@&#8203;codingjenny](https://github.com/codingjenny). - 🌐 Add Traditional Chinese translation for `docs/zh-hant/docs/about/index.md`. PR [#&#8203;12438](https://github.com/fastapi/fastapi/pull/12438) by [@&#8203;codingjenny](https://github.com/codingjenny). - 🌐 Add Portuguese translation for `docs/pt/docs/tutorial/query-param-models.md`. PR [#&#8203;12414](https://github.com/fastapi/fastapi/pull/12414) by [@&#8203;ceb10n](https://github.com/ceb10n). - 🌐 Remove Portuguese translation for `docs/pt/docs/deployment.md`. PR [#&#8203;12427](https://github.com/fastapi/fastapi/pull/12427) by [@&#8203;ceb10n](https://github.com/ceb10n). - 🌐 Add Portuguese translation for `docs/pt/docs/tutorial/body-updates.md`. PR [#&#8203;12381](https://github.com/fastapi/fastapi/pull/12381) by [@&#8203;andersonrocha0](https://github.com/andersonrocha0). - 🌐 Add Portuguese translation for `docs/pt/docs/advanced/response-cookies.md`. PR [#&#8203;12417](https://github.com/fastapi/fastapi/pull/12417) by [@&#8203;Paulofalcao2002](https://github.com/Paulofalcao2002). ##### Internal - 👷 Update issue manager workflow . PR [#&#8203;12457](https://github.com/fastapi/fastapi/pull/12457) by [@&#8203;alejsdev](https://github.com/alejsdev). - 🔧 Update team, include YuriiMotov 🚀. PR [#&#8203;12453](https://github.com/fastapi/fastapi/pull/12453) by [@&#8203;tiangolo](https://github.com/tiangolo). - 👷 Refactor label-approved, make it an internal script instead of an external GitHub Action. PR [#&#8203;12280](https://github.com/fastapi/fastapi/pull/12280) by [@&#8203;tiangolo](https://github.com/tiangolo). - 👷 Fix smokeshow, checkout files on CI. PR [#&#8203;12434](https://github.com/fastapi/fastapi/pull/12434) by [@&#8203;tiangolo](https://github.com/tiangolo). - 👷 Use uv in CI. PR [#&#8203;12281](https://github.com/fastapi/fastapi/pull/12281) by [@&#8203;tiangolo](https://github.com/tiangolo). - ⬆ Update httpx requirement from <0.25.0,>=0.23.0 to >=0.23.0,<0.28.0. PR [#&#8203;11509](https://github.com/fastapi/fastapi/pull/11509) by [@&#8203;dependabot\[bot\]](https://github.com/apps/dependabot). ### [`v0.115.2`](https://github.com/fastapi/fastapi/releases/tag/0.115.2) [Compare Source](https://github.com/fastapi/fastapi/compare/0.115.1...0.115.2) ##### Upgrades - ⬆️ Upgrade Starlette to `>=0.37.2,<0.41.0`. PR [#&#8203;12431](https://github.com/fastapi/fastapi/pull/12431) by [@&#8203;tiangolo](https://github.com/tiangolo). ### [`v0.115.1`](https://github.com/fastapi/fastapi/releases/tag/0.115.1) [Compare Source](https://github.com/fastapi/fastapi/compare/0.115.0...0.115.1) ##### Fixes - 🐛 Fix openapi generation with responses kwarg. PR [#&#8203;10895](https://github.com/fastapi/fastapi/pull/10895) by [@&#8203;flxdot](https://github.com/flxdot). - 🐛 Remove `Required` shadowing from fastapi using Pydantic v2. PR [#&#8203;12197](https://github.com/fastapi/fastapi/pull/12197) by [@&#8203;pachewise](https://github.com/pachewise). ##### Refactors - ♻️ Update type annotations for improved `python-multipart`. PR [#&#8203;12407](https://github.com/fastapi/fastapi/pull/12407) by [@&#8203;tiangolo](https://github.com/tiangolo). ##### Docs - ✨ Add new tutorial for SQL databases with SQLModel. PR [#&#8203;12285](https://github.com/fastapi/fastapi/pull/12285) by [@&#8203;tiangolo](https://github.com/tiangolo). - 📝 Add External Link: How to profile a FastAPI asynchronous request. PR [#&#8203;12389](https://github.com/fastapi/fastapi/pull/12389) by [@&#8203;brouberol](https://github.com/brouberol). - 🔧 Remove `base_path` for `mdx_include` Markdown extension in MkDocs. PR [#&#8203;12391](https://github.com/fastapi/fastapi/pull/12391) by [@&#8203;tiangolo](https://github.com/tiangolo). - 📝 Update link to Swagger UI configuration docs. PR [#&#8203;12264](https://github.com/fastapi/fastapi/pull/12264) by [@&#8203;makisukurisu](https://github.com/makisukurisu). - 📝 Adding links for Playwright and Vite in `docs/project-generation.md`. PR [#&#8203;12274](https://github.com/fastapi/fastapi/pull/12274) by [@&#8203;kayqueGovetri](https://github.com/kayqueGovetri). - 📝 Fix small typos in the documentation. PR [#&#8203;12213](https://github.com/fastapi/fastapi/pull/12213) by [@&#8203;svlandeg](https://github.com/svlandeg). ##### Translations - 🌐 Add Portuguese translation for `docs/pt/docs/tutorial/cookie-param-models.md`. PR [#&#8203;12298](https://github.com/fastapi/fastapi/pull/12298) by [@&#8203;ceb10n](https://github.com/ceb10n). - 🌐 Add Portuguese translation for `docs/pt/docs/how-to/graphql.md`. PR [#&#8203;12215](https://github.com/fastapi/fastapi/pull/12215) by [@&#8203;AnandaCampelo](https://github.com/AnandaCampelo). - 🌐 Add Portuguese translation for `docs/pt/docs/advanced/security/oauth2-scopes.md`. PR [#&#8203;12263](https://github.com/fastapi/fastapi/pull/12263) by [@&#8203;ceb10n](https://github.com/ceb10n). - 🌐 Add Portuguese translation for `docs/pt/docs/deployment/concepts.md`. PR [#&#8203;12219](https://github.com/fastapi/fastapi/pull/12219) by [@&#8203;marcelomarkus](https://github.com/marcelomarkus). - 🌐 Add Portuguese translation for `docs/pt/docs/how-to/conditional-openapi.md`. PR [#&#8203;12221](https://github.com/fastapi/fastapi/pull/12221) by [@&#8203;marcelomarkus](https://github.com/marcelomarkus). - 🌐 Add Portuguese translation for `docs/pt/docs/advanced/response-directly.md`. PR [#&#8203;12266](https://github.com/fastapi/fastapi/pull/12266) by [@&#8203;Joao-Pedro-P-Holanda](https://github.com/Joao-Pedro-P-Holanda). - 🌐 Update Portuguese translation for `docs/pt/docs/tutorial/cookie-params.md`. PR [#&#8203;12297](https://github.com/fastapi/fastapi/pull/12297) by [@&#8203;ceb10n](https://github.com/ceb10n). - 🌐 Fix Korean translation for `docs/ko/docs/tutorial/index.md`. PR [#&#8203;12278](https://github.com/fastapi/fastapi/pull/12278) by [@&#8203;kkotipy](https://github.com/kkotipy). - 🌐 Update Portuguese translation for `docs/pt/docs/advanced/security/http-basic-auth.md`. PR [#&#8203;12275](https://github.com/fastapi/fastapi/pull/12275) by [@&#8203;andersonrocha0](https://github.com/andersonrocha0). - 🌐 Add Portuguese translation for `docs/pt/docs/deployment/cloud.md`. PR [#&#8203;12217](https://github.com/fastapi/fastapi/pull/12217) by [@&#8203;marcelomarkus](https://github.com/marcelomarkus). - ✏️ Fix typo in `docs/es/docs/python-types.md`. PR [#&#8203;12235](https://github.com/fastapi/fastapi/pull/12235) by [@&#8203;JavierSanchezCastro](https://github.com/JavierSanchezCastro). - 🌐 Add Dutch translation for `docs/nl/docs/environment-variables.md`. PR [#&#8203;12200](https://github.com/fastapi/fastapi/pull/12200) by [@&#8203;maxscheijen](https://github.com/maxscheijen). - 🌐 Add Portuguese translation for `docs/pt/docs/deployment/manually.md`. PR [#&#8203;12210](https://github.com/fastapi/fastapi/pull/12210) by [@&#8203;JoaoGustavoRogel](https://github.com/JoaoGustavoRogel). - 🌐 Add Portuguese translation for `docs/pt/docs/deployment/server-workers.md`. PR [#&#8203;12220](https://github.com/fastapi/fastapi/pull/12220) by [@&#8203;marcelomarkus](https://github.com/marcelomarkus). - 🌐 Add Portuguese translation for `docs/pt/docs/how-to/configure-swagger-ui.md`. PR [#&#8203;12222](https://github.com/fastapi/fastapi/pull/12222) by [@&#8203;marcelomarkus](https://github.com/marcelomarkus). ##### Internal - ⬆ \[pre-commit.ci] pre-commit autoupdate. PR [#&#8203;12396](https://github.com/fastapi/fastapi/pull/12396) by [@&#8203;pre-commit-ci\[bot\]](https://github.com/apps/pre-commit-ci). - 🔨 Add script to generate variants of files. PR [#&#8203;12405](https://github.com/fastapi/fastapi/pull/12405) by [@&#8203;tiangolo](https://github.com/tiangolo). - 🔧 Add speakeasy-api to `sponsors_badge.yml`. PR [#&#8203;12404](https://github.com/fastapi/fastapi/pull/12404) by [@&#8203;tiangolo](https://github.com/tiangolo). - ➕ Add docs dependency: markdown-include-variants. PR [#&#8203;12399](https://github.com/fastapi/fastapi/pull/12399) by [@&#8203;tiangolo](https://github.com/tiangolo). - 📝 Fix extra mdx-base-path paths. PR [#&#8203;12397](https://github.com/fastapi/fastapi/pull/12397) by [@&#8203;tiangolo](https://github.com/tiangolo). - 👷 Tweak labeler to not override custom labels. PR [#&#8203;12398](https://github.com/fastapi/fastapi/pull/12398) by [@&#8203;tiangolo](https://github.com/tiangolo). - 👷 Update worfkow deploy-docs-notify URL. PR [#&#8203;12392](https://github.com/fastapi/fastapi/pull/12392) by [@&#8203;tiangolo](https://github.com/tiangolo). - 👷 Update Cloudflare GitHub Action. PR [#&#8203;12387](https://github.com/fastapi/fastapi/pull/12387) by [@&#8203;tiangolo](https://github.com/tiangolo). - ⬆ Bump pypa/gh-action-pypi-publish from 1.10.1 to 1.10.3. PR [#&#8203;12386](https://github.com/fastapi/fastapi/pull/12386) by [@&#8203;dependabot\[bot\]](https://github.com/apps/dependabot). - ⬆ Bump mkdocstrings\[python] from 0.25.1 to 0.26.1. PR [#&#8203;12371](https://github.com/fastapi/fastapi/pull/12371) by [@&#8203;dependabot\[bot\]](https://github.com/apps/dependabot). - ⬆ Bump griffe-typingdoc from 0.2.6 to 0.2.7. PR [#&#8203;12370](https://github.com/fastapi/fastapi/pull/12370) by [@&#8203;dependabot\[bot\]](https://github.com/apps/dependabot). - ⬆ \[pre-commit.ci] pre-commit autoupdate. PR [#&#8203;12331](https://github.com/fastapi/fastapi/pull/12331) by [@&#8203;pre-commit-ci\[bot\]](https://github.com/apps/pre-commit-ci). - 🔧 Update sponsors, remove Fine.dev. PR [#&#8203;12271](https://github.com/fastapi/fastapi/pull/12271) by [@&#8203;tiangolo](https://github.com/tiangolo). - ⬆ \[pre-commit.ci] pre-commit autoupdate. PR [#&#8203;12253](https://github.com/fastapi/fastapi/pull/12253) by [@&#8203;pre-commit-ci\[bot\]](https://github.com/apps/pre-commit-ci). - ✏️ Fix docstring typos in http security. PR [#&#8203;12223](https://github.com/fastapi/fastapi/pull/12223) by [@&#8203;albertvillanova](https://github.com/albertvillanova). ### [`v0.115.0`](https://github.com/fastapi/fastapi/releases/tag/0.115.0) [Compare Source](https://github.com/fastapi/fastapi/compare/0.114.2...0.115.0) ##### Highlights Now you can declare `Query`, `Header`, and `Cookie` parameters with Pydantic models. 🎉 ##### `Query` Parameter Models Use Pydantic models for `Query` parameters: ```python 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] = [] @&#8203;app.get("/items/") async def read_items(filter_query: Annotated[FilterParams, Query()]): return filter_query ``` Read the new docs: [Query Parameter Models](https://fastapi.tiangolo.com/tutorial/query-param-models/). ##### `Header` Parameter Models Use Pydantic models for `Header` parameters: ```python 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] = [] @&#8203;app.get("/items/") async def read_items(headers: Annotated[CommonHeaders, Header()]): return headers ``` Read the new docs: [Header Parameter Models](https://fastapi.tiangolo.com/tutorial/header-param-models/). ##### `Cookie` Parameter Models Use Pydantic models for `Cookie` parameters: ```python 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 @&#8203;app.get("/items/") async def read_items(cookies: Annotated[Cookies, Cookie()]): return cookies ``` Read the new docs: [Cookie Parameter Models](https://fastapi.tiangolo.com/tutorial/cookie-param-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"}`: ```python 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] = [] @&#8203;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: - [Forbid Extra Query Parameters](https://fastapi.tiangolo.com/tutorial/query-param-models/#forbid-extra-query-parameters) - [Forbid Extra Headers](https://fastapi.tiangolo.com/tutorial/header-param-models/#forbid-extra-headers) - [Forbid Extra Cookies](https://fastapi.tiangolo.com/tutorial/cookie-param-models/#forbid-extra-cookies) ##### Features - ✨ Add support for Pydantic models for parameters using `Query`, `Cookie`, `Header`. PR [#&#8203;12199](https://github.com/fastapi/fastapi/pull/12199) by [@&#8203;tiangolo](https://github.com/tiangolo). ##### Translations - 🌐 Add Portuguese translation for `docs/pt/docs/advanced/security/http-basic-auth.md`. PR [#&#8203;12195](https://github.com/fastapi/fastapi/pull/12195) by [@&#8203;ceb10n](https://github.com/ceb10n). ##### Internal - ⬆ \[pre-commit.ci] pre-commit autoupdate. PR [#&#8203;12204](https://github.com/fastapi/fastapi/pull/12204) by [@&#8203;pre-commit-ci\[bot\]](https://github.com/apps/pre-commit-ci). ### [`v0.114.2`](https://github.com/fastapi/fastapi/releases/tag/0.114.2) [Compare Source](https://github.com/fastapi/fastapi/compare/0.114.1...0.114.2) ##### Fixes - 🐛 Fix form field regression with `alias`. PR [#&#8203;12194](https://github.com/fastapi/fastapi/pull/12194) by [@&#8203;Wurstnase](https://github.com/Wurstnase). ##### Translations - 🌐 Add Portuguese translation for `docs/pt/docs/tutorial/request-form-models.md`. PR [#&#8203;12175](https://github.com/fastapi/fastapi/pull/12175) by [@&#8203;ceb10n](https://github.com/ceb10n). - 🌐 Add Chinese translation for `docs/zh/docs/project-generation.md`. PR [#&#8203;12170](https://github.com/fastapi/fastapi/pull/12170) by [@&#8203;waketzheng](https://github.com/waketzheng). - 🌐 Add Dutch translation for `docs/nl/docs/python-types.md`. PR [#&#8203;12158](https://github.com/fastapi/fastapi/pull/12158) by [@&#8203;maxscheijen](https://github.com/maxscheijen). ##### Internal - 💡 Add comments with instructions for Playwright screenshot scripts. PR [#&#8203;12193](https://github.com/fastapi/fastapi/pull/12193) by [@&#8203;tiangolo](https://github.com/tiangolo). - ➕ Add inline-snapshot for tests. PR [#&#8203;12189](https://github.com/fastapi/fastapi/pull/12189) by [@&#8203;tiangolo](https://github.com/tiangolo). ### [`v0.114.1`](https://github.com/fastapi/fastapi/releases/tag/0.114.1) [Compare Source](https://github.com/fastapi/fastapi/compare/0.114.0...0.114.1) ##### Refactors - ⚡️ Improve performance in request body parsing with a cache for internal model fields. PR [#&#8203;12184](https://github.com/fastapi/fastapi/pull/12184) by [@&#8203;tiangolo](https://github.com/tiangolo). ##### Docs - 📝 Remove duplicate line in docs for `docs/en/docs/environment-variables.md`. PR [#&#8203;12169](https://github.com/fastapi/fastapi/pull/12169) by [@&#8203;prometek](https://github.com/prometek). ##### Translations - 🌐 Add Portuguese translation for `docs/pt/docs/virtual-environments.md`. PR [#&#8203;12163](https://github.com/fastapi/fastapi/pull/12163) by [@&#8203;marcelomarkus](https://github.com/marcelomarkus). - 🌐 Add Portuguese translation for `docs/pt/docs/environment-variables.md`. PR [#&#8203;12162](https://github.com/fastapi/fastapi/pull/12162) by [@&#8203;marcelomarkus](https://github.com/marcelomarkus). - 🌐 Add Portuguese translation for `docs/pt/docs/tutorial/testing.md`. PR [#&#8203;12164](https://github.com/fastapi/fastapi/pull/12164) by [@&#8203;marcelomarkus](https://github.com/marcelomarkus). - 🌐 Add Portuguese translation for `docs/pt/docs/tutorial/debugging.md`. PR [#&#8203;12165](https://github.com/fastapi/fastapi/pull/12165) by [@&#8203;marcelomarkus](https://github.com/marcelomarkus). - 🌐 Add Korean translation for `docs/ko/docs/project-generation.md`. PR [#&#8203;12157](https://github.com/fastapi/fastapi/pull/12157) by [@&#8203;BORA040126](https://github.com/BORA040126). ##### Internal - ⬆ Bump tiangolo/issue-manager from 0.5.0 to 0.5.1. PR [#&#8203;12173](https://github.com/fastapi/fastapi/pull/12173) by [@&#8203;dependabot\[bot\]](https://github.com/apps/dependabot). - ⬆ \[pre-commit.ci] pre-commit autoupdate. PR [#&#8203;12176](https://github.com/fastapi/fastapi/pull/12176) by [@&#8203;pre-commit-ci\[bot\]](https://github.com/apps/pre-commit-ci). - 👷 Update `issue-manager.yml`. PR [#&#8203;12159](https://github.com/fastapi/fastapi/pull/12159) by [@&#8203;tiangolo](https://github.com/tiangolo). - ✏️ Fix typo in `fastapi/params.py`. PR [#&#8203;12143](https://github.com/fastapi/fastapi/pull/12143) by [@&#8203;surreal30](https://github.com/surreal30). </details> --- ### 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. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOC40NS4wIiwidXBkYXRlZEluVmVyIjoiMzcuMjgwLjAiLCJ0YXJnZXRCcmFuY2giOiJtYWluIiwibGFiZWxzIjpbXX0=-->
renovate force-pushed renovate/fastapi-0.x from 5300ee0e61 to 5652dc3e7a 2024-10-13 00:41:52 +00:00 Compare
renovate changed title from Update dependency fastapi to v0.115.0 to Update dependency fastapi to v0.115.2 2024-10-13 00:41:54 +00:00
renovate force-pushed renovate/fastapi-0.x from 5652dc3e7a to 667271c6c8 2024-10-27 00:55:14 +00:00 Compare
renovate changed title from Update dependency fastapi to v0.115.2 to Update dependency fastapi to v0.115.3 2024-10-27 00:55:15 +00:00
renovate force-pushed renovate/fastapi-0.x from 667271c6c8 to 91802b4bde 2024-11-03 00:59:56 +00:00 Compare
renovate changed title from Update dependency fastapi to v0.115.3 to Update dependency fastapi to v0.115.4 2024-11-03 00:59:58 +00:00
renovate force-pushed renovate/fastapi-0.x from 91802b4bde to 6ae072d312 2024-11-17 01:13:39 +00:00 Compare
renovate changed title from Update dependency fastapi to v0.115.4 to Update dependency fastapi to v0.115.5 2024-11-17 01:13:43 +00:00
renovate force-pushed renovate/fastapi-0.x from 6ae072d312 to e5fe2586a7 2024-12-08 01:31:07 +00:00 Compare
renovate changed title from Update dependency fastapi to v0.115.5 to Update dependency fastapi to v0.115.6 2024-12-08 01:31:09 +00:00
renovate force-pushed renovate/fastapi-0.x from e5fe2586a7 to 88ecb846a0 2025-01-26 01:56:07 +00:00 Compare
renovate changed title from Update dependency fastapi to v0.115.6 to Update dependency fastapi to v0.115.7 2025-01-26 01:56:10 +00:00
renovate force-pushed renovate/fastapi-0.x from 88ecb846a0 to f9519f9d80 2025-02-02 01:59:09 +00:00 Compare
renovate changed title from Update dependency fastapi to v0.115.7 to Update dependency fastapi to v0.115.8 2025-02-02 01:59:13 +00:00
renovate changed title from Update dependency fastapi to v0.115.8 to chore(deps): update dependency fastapi to v0.115.8 2025-02-08 08:33:57 +00:00
renovate changed title from chore(deps): update dependency fastapi to v0.115.8 to chore(deps): update dependency fastapi to v0.115.8 - autoclosed 2025-02-09 04:02:25 +00:00
renovate closed this pull request 2025-02-09 04:02:26 +00:00

Pull request closed

Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: training/workshop-image-improvement#7