Update dependency fastapi to v0.115.5
This MR contains the following updates:
Package | Type | Update | Change |
---|---|---|---|
fastapi (changelog) | dependencies | minor |
0.114.0 -> 0.115.5
|
Release Notes
fastapi/fastapi (fastapi)
v0.115.5
Refactors
-
♻ ️ Update internal checks to support Pydantic 2.10. MR #12914 by @tiangolo.
Docs
-
📝 Update includes fordocs/en/docs/tutorial/body.md
. MR #12757 by @gsheni. -
📝 Update includes indocs/en/docs/advanced/testing-dependencies.md
. MR #12647 by @AyushSinghal1794. -
📝 Update includes fordocs/en/docs/tutorial/metadata.md
. MR #12773 by @Nimitha-jagadeesha. -
📝 Updatedocs/en/docs/tutorial/dependencies/dependencies-with-yield.md
. MR #12045 by @xuvjso. -
📝 Update includes fordocs/en/docs/tutorial/dependencies/global-dependencies.md
. MR #12653 by @vishnuvskvkl. -
📝 Update includes fordocs/en/docs/tutorial/body-updates.md
. MR #12712 by @davioc. -
📝 Remove mention of Celery in the project generators. MR #12742 by @david-caro. -
📝 Update includes indocs/en/docs/tutorial/header-param-models.md
. MR #12814 by @zhaohan-dong. -
📝 Updatecontributing.md
docs, include note to not translate this page. MR #12841 by @tiangolo. -
📝 Update includes indocs/en/docs/tutorial/request-forms.md
. MR #12648 by @vishnuvskvkl. -
📝 Update includes indocs/en/docs/tutorial/request-form-models.md
. MR #12649 by @vishnuvskvkl. -
📝 Update includes indocs/en/docs/tutorial/security/oauth2-jwt.md
. MR #12650 by @OCE1960. -
📝 Update includes indocs/vi/docs/tutorial/first-steps.md
. MR #12754 by @MxPy. -
📝 Update includes fordocs/pt/docs/advanced/wsgi.md
. MR #12769 by @Nimitha-jagadeesha. -
📝 Update includes fordocs/en/docs/tutorial/dependencies/dependencies-in-path-operation-decorators.md
. MR #12815 by @handabaldeep. -
📝 Update includes fordocs/en/docs/tutorial/dependencies/classes-as-dependencies.md
. MR #12813 by @handabaldeep. -
✏ ️ Fix error indocs/en/docs/tutorial/middleware.md
. MR #12819 by @alejsdev. -
📝 Update includes fordocs/en/docs/tutorial/security/get-current-user.md
. MR #12645 by @OCE1960. -
📝 Update includes fordocs/en/docs/tutorial/security/first-steps.md
. MR #12643 by @OCE1960. -
📝 Update includes indocs/de/docs/advanced/additional-responses.md
. MR #12821 by @zhaohan-dong. -
📝 Update includes indocs/en/docs/advanced/generate-clients.md
. MR #12642 by @AyushSinghal1794. -
📝 Fix admonition double quotes with new syntax. MR #12835 by @tiangolo. -
📝 Update includes indocs/zh/docs/advanced/additional-responses.md
. MR #12828 by @zhaohan-dong. -
📝 Update includes indocs/en/docs/tutorial/path-params-numeric-validations.md
. MR #12825 by @zhaohan-dong. -
📝 Update includes fordocs/en/docs/advanced/testing-websockets.md
. MR #12761 by @hamidrasti. -
📝 Update includes fordocs/en/docs/advanced/using-request-directly.md
. MR #12760 by @hamidrasti. -
📝 Update includes fordocs/advanced/wsgi.md
. MR #12758 by @hamidrasti. -
📝 Update includes indocs/de/docs/tutorial/middleware.md
. MR #12729 by @paintdog. -
📝 Update includes fordocs/en/docs/tutorial/schema-extra-example.md
. MR #12822 by @tiangolo. -
📝 Update includes indocs/fr/docs/advanced/additional-responses.md
. MR #12634 by @fegmorte. -
📝 Update includes indocs/fr/docs/advanced/path-operation-advanced-configuration.md
. MR #12633 by @kantandane. -
📝 Update includes indocs/fr/docs/advanced/response-directly.md
. MR #12632 by @kantandane. -
📝 Update includes fordocs/en/docs/tutorial/header-params.md
. MR #12640 by @vishnuvskvkl. -
📝 Update includes indocs/en/docs/tutorial/cookie-param-models.md
. MR #12639 by @vishnuvskvkl. -
📝 Update includes fordocs/en/docs/tutorial/extra-models.md
. MR #12638 by @vishnuvskvkl. -
📝 Update includes fordocs/en/docs/tutorial/cors.md
. MR #12637 by @vishnuvskvkl. -
📝 Update includes fordocs/en/docs/tutorial/dependencies/sub-dependencies.md
. MR #12810 by @handabaldeep. -
📝 Update includes indocs/en/docs/tutorial/body-nested-models.md
. MR #12812 by @zhaohan-dong. -
📝 Update includes indocs/en/docs/tutorial/path-operation-configuration.md
. MR #12809 by @AlexWendland. -
📝 Update includes indocs/en/docs/tutorial/request-files.md
. MR #12818 by @zhaohan-dong. -
📝 Update includes fordocs/en/docs/tutorial/query-param-models.md
. MR #12817 by @handabaldeep. -
📝 Update includes indocs/en/docs/tutorial/path-params.md
. MR #12811 by @AlexWendland. -
📝 Update includes indocs/en/docs/tutorial/response-model.md
. MR #12621 by @kantandane. -
📝 Update includes indocs/en/docs/advanced/websockets.md
. MR #12606 by @vishnuvskvkl. -
📝 Updates include fordocs/en/docs/tutorial/cookie-params.md
. MR #12808 by @handabaldeep. -
📝 Update includes indocs/en/docs/tutorial/middleware.md
. MR #12807 by @AlexWendland. -
📝 Update includes indocs/en/docs/advanced/sub-applications.md
. MR #12806 by @zhaohan-dong. -
📝 Update includes indocs/en/docs/advanced/response-headers.md
. MR #12805 by @zhaohan-dong. -
📝 Update includes indocs/fr/docs/tutorial/first-steps.md
. MR #12594 by @kantandane. -
📝 Update includes indocs/en/docs/advanced/response-cookies.md
. MR #12804 by @zhaohan-dong. -
📝 Update includes indocs/en/docs/advanced/path-operation-advanced-configuration.md
. MR #12802 by @zhaohan-dong. -
📝 Update includes fordocs/en/docs/advanced/response-directly.md
. MR #12803 by @handabaldeep. -
📝 Update includes indocs/zh/docs/tutorial/background-tasks.md
. MR #12798 by @zhaohan-dong. -
📝 Update includes fordocs/de/docs/tutorial/body-multiple-params.md
. MR #12699 by @alissadb. -
📝 Update includes indocs/em/docs/tutorial/body-updates.md
. MR #12799 by @AlexWendland. -
📝 Update includesdocs/en/docs/advanced/response-change-status-code.md
. MR #12801 by @handabaldeep. -
📝 Update includesdocs/en/docs/advanced/openapi-callbacks.md
. MR #12800 by @handabaldeep. -
📝 Update includes indocs/fr/docs/tutorial/body-multiple-params.md
. MR #12598 by @kantandane. -
📝 Update includes indocs/en/docs/tutorial/body-multiple-params.md
. MR #12593 by @Tashanam-Shahbaz. -
📝 Update includes indocs/pt/docs/tutorial/background-tasks.md
. MR #12736 by @bhunao. -
📝 Update includes fordocs/en/docs/advanced/custom-response.md
. MR #12797 by @handabaldeep. -
📝 Update includes fordocs/pt/docs/python-types.md
. MR #12671 by @ceb10n. -
📝 Update includes fordocs/de/docs/python-types.md
. MR #12660 by @alissadb. -
📝 Update includes fordocs/de/docs/advanced/dataclasses.md
. MR #12658 by @alissadb. -
📝 Update includes indocs/fr/docs/tutorial/path-params.md
. MR #12592 by @kantandane. -
📝 Update includes fordocs/de/docs/how-to/configure-swagger-ui.md
. MR #12690 by @alissadb. -
📝 Update includes indocs/en/docs/advanced/security/oauth2-scopes.md
. MR #12572 by @krishnamadhavan. -
📝 Update includes fordocs/en/docs/how-to/conditional-openapi.md
. MR #12624 by @rabinlamadong. -
📝 Update includes indocs/en/docs/tutorial/dependencies/index.md
. MR #12615 by @bharara. -
📝 Update includes indocs/en/docs/tutorial/response-status-code.md
. MR #12620 by @kantandane. -
📝 Update includes indocs/en/docs/how-to/custom-docs-ui-assets.md
. MR #12623 by @rabinlamadong. -
📝 Update includes indocs/en/docs/advanced/openapi-webhooks.md
. MR #12605 by @salmantec. -
📝 Update includes indocs/en/docs/advanced/events.md
. MR #12604 by @salmantec. -
📝 Update includes indocs/en/docs/advanced/dataclasses.md
. MR #12603 by @salmantec. -
📝 Update includes indocs/es/docs/tutorial/cookie-params.md
. MR #12602 by @antonyare93. -
📝 Update includes indocs/fr/docs/tutorial/path-params-numeric-validations.md
. MR #12601 by @kantandane. -
📝 Update includes indocs/fr/docs/tutorial/background-tasks.md
. MR #12600 by @kantandane. -
📝 Update includes indocs/en/docs/tutorial/encoder.md
. MR #12597 by @tonyjly. -
📝 Update includes indocs/en/docs/how-to/custom-docs-ui-assets.md
. MR #12557 by @philipokiokio. -
🎨 Adjust spacing. MR #12635 by @alejsdev. -
📝 Update includes indocs/en/docs/how-to/custom-request-and-route.md
. MR #12560 by @philipokiokio.
Translations
-
🌐 Add Korean translation fordocs/ko/docs/advanced/testing-websockets.md
. MR #12739 by @Limsunoh. -
🌐 Add Traditional Chinese translation fordocs/zh-hant/docs/environment-variables.md
. MR #12785 by @Vincy1230. -
🌐 Add Chinese translation fordocs/zh/docs/environment-variables.md
. MR #12784 by @Vincy1230. -
🌐 Add Korean translation forko/docs/advanced/response-headers.md
. MR #12740 by @kwang1215. -
🌐 Add Chinese translation fordocs/zh/docs/virtual-environments.md
. MR #12790 by @Vincy1230. -
🌐 Add Korean translation for/docs/ko/docs/environment-variables.md
. MR #12526 by @Tolerblanc. -
🌐 Add Korean translation fordocs/ko/docs/history-design-future.md
. MR #12646 by @saeye. -
🌐 Add Korean translation fordocs/ko/docs/advanced/advanced-dependencies.md
. MR #12675 by @kim-sangah. -
🌐 Add Korean translation fordocs/ko/docs/how-to/conditional-openapi.md
. MR #12731 by @sptcnl. -
🌐 Add Korean translation fordocs/ko/docs/advanced/using_request_directly.md
. MR #12738 by @kwang1215. -
🌐 Add Korean translation fordocs/ko/docs/advanced/testing-events.md
. MR #12741 by @9zimin9. -
🌐 Add Korean translation fordocs/ko/docs/security/index.md
. MR #12743 by @kim-sangah. -
🌐 Add Portuguese translation fordocs/pt/docs/advanced/path-operation-advanced-configuration.md
. MR #12762 by @Joao-Pedro-P-Holanda. -
🌐 Add Korean translation fordocs/ko/docs/advanced/wsgi.md
. MR #12659 by @Limsunoh. -
🌐 Add Portuguese translation fordocs/pt/docs/advanced/websockets.md
. MR #12703 by @devfernandoa. -
🌐 Add Portuguese translation fordocs/pt/docs/tutorial/security/simple-oauth2.md
. MR #12520 by @LidiaDomingos. -
🌐 Add Korean translation fordocs/ko/docs/advanced/response-directly.md
. MR #12674 by @9zimin9. -
🌐 Add Portuguese translation fordocs/pt/docs/advanced/middleware.md
. MR #12704 by @devluisrodrigues. -
🌐 Add Portuguese translation fordocs/pt/docs/advanced/openapi-callbacks.md
. MR #12705 by @devfernandoa. -
🌐 Add Portuguese translation fordocs/pt/docs/tutorial/request-files.md
. MR #12706 by @devluisrodrigues. -
🌐 Add Portuguese Translation fordocs/pt/docs/advanced/custom-response.md
. MR #12631 by @Joao-Pedro-P-Holanda. -
🌐 Add Portuguese translation fordocs/pt/docs/tutorial/metadata.md
. MR #12538 by @LinkolnR. -
🌐 Add Korean translation fordocs/ko/docs/tutorial/metadata.md
. MR #12541 by @kwang1215. -
🌐 Add Korean Translation fordocs/ko/docs/advanced/response-cookies.md
. MR #12546 by @kim-sangah. -
🌐 Add Korean translation fordocs/ko/docs/fastapi-cli.md
. MR #12515 by @dhdld. -
🌐 Add Korean Translation fordocs/ko/docs/advanced/response-change-status-code.md
. MR #12547 by @9zimin9.
Internal
-
⬆ [pre-commit.ci] pre-commit autoupdate. MR #12907 by @pre-commit-ci[bot]. -
🔨 Update docs preview script to show previous version and English version. MR #12856 by @tiangolo. -
⬆ Bump tiangolo/latest-changes from 0.3.1 to 0.3.2. MR #12794 by @dependabot[bot]. -
⬆ Bump pypa/gh-action-pypi-publish from 1.12.0 to 1.12.2. MR #12788 by @dependabot[bot]. -
⬆ Bump pypa/gh-action-pypi-publish from 1.11.0 to 1.12.0. MR #12781 by @dependabot[bot]. -
⬆ Bump cloudflare/wrangler-action from 3.11 to 3.12. MR #12777 by @dependabot[bot]. -
⬆ [pre-commit.ci] pre-commit autoupdate. MR #12766 by @pre-commit-ci[bot]. -
⬆ Bump pypa/gh-action-pypi-publish from 1.10.3 to 1.11.0. MR #12721 by @dependabot[bot]. -
⬆ Update pre-commit requirement from <4.0.0,>=2.17.0 to >=2.17.0,<5.0.0. MR #12749 by @dependabot[bot]. -
⬆ Bump typer from 0.12.3 to 0.12.5. MR #12748 by @dependabot[bot]. -
⬆ Update flask requirement from <3.0.0,>=1.1.2 to >=1.1.2,<4.0.0. MR #12747 by @dependabot[bot]. -
⬆ Bump pillow from 10.4.0 to 11.0.0. MR #12746 by @dependabot[bot]. -
⬆ Update pytest requirement from <8.0.0,>=7.1.3 to >=7.1.3,<9.0.0. MR #12745 by @dependabot[bot]. -
🔧 Update sponsors: add Render. MR #12733 by @tiangolo. -
⬆ [pre-commit.ci] pre-commit autoupdate. MR #12707 by @pre-commit-ci[bot].
v0.115.4
Refactors
-
♻ ️ Update logic to import and checkpython-multipart
for compatibility with newer version. MR #12627 by @tiangolo.
Docs
-
📝 Update includes indocs/fr/docs/tutorial/body.md
. MR #12596 by @kantandane. -
📝 Update includes indocs/fr/docs/tutorial/debugging.md
. MR #12595 by @kantandane. -
📝 Update includes indocs/fr/docs/tutorial/query-params-str-validations.md
. MR #12591 by @kantandane. -
📝 Update includes indocs/fr/docs/tutorial/query-params.md
. MR #12589 by @kantandane. -
📝 Update includes indocs/en/tutorial/body-fields.md
. MR #12588 by @lucaromagnoli. -
📝 Update includes indocs/de/docs/tutorial/response-status-code.md
. MR #12585 by @abejaranoh. -
📝 Update includes indocs/en/docs/tutorial/body.md
. MR #12586 by @lucaromagnoli. -
📝 Update includes indocs/en/docs/advanced/behind-a-proxy.md
. MR #12583 by @imjuanleonard. -
📝 Update includes syntax fordocs/pl/docs/tutorial/first-steps.md
. MR #12584 by @sebkozlo. -
📝 Update includes indocs/en/docs/advanced/middleware.md
. MR #12582 by @montanarograziano. -
📝 Update includes indocs/en/docs/advanced/additional-status-codes.md
. MR #12577 by @krishnamadhavan. -
📝 Update includes indocs/en/docs/advanced/advanced-dependencies.md
. MR #12578 by @krishnamadhavan. -
📝 Update includes indocs/en/docs/advanced/additional-responses.md
. MR #12576 by @krishnamadhavan. -
📝 Update includes indocs/en/docs/tutorial/static-files.md
. MR #12575 by @lucaromagnoli. -
📝 Update includes indocs/en/docs/advanced/async-tests.md
. MR #12568 by @krishnamadhavan. -
📝 Update includes indocs/pt/docs/advanced/behind-a-proxy.md
. MR #12563 by @asmioglou. -
📝 Update includes indocs/de/docs/advanced/security/http-basic-auth.md
. MR #12561 by @Nimitha-jagadeesha. -
📝 Update includes indocs/en/docs/tutorial/background-tasks.md
. MR #12559 by @FarhanAliRaza. -
📝 Update includes indocs/fr/docs/python-types.md
. MR #12558 by @Ismailtlem. -
📝 Update includes indocs/en/docs/how-to/graphql.md
. MR #12564 by @philipokiokio. -
📝 Update includes indocs/en/docs/how-to/extending-openapi.md
. MR #12562 by @philipokiokio. -
📝 Update includes fordocs/en/docs/how-to/configure-swagger-ui.md
. MR #12556 by @tiangolo. -
📝 Update includes fordocs/en/docs/how-to/separate-openapi-schemas.md
. MR #12555 by @tiangolo. -
📝 Update includes fordocs/en/docs/advanced/security/http-basic-auth.md
. MR #12553 by @tiangolo. -
📝 Update includes indocs/en/docs/tutorial/first-steps.md
. MR #12552 by @tiangolo. -
📝 Update includes indocs/en/docs/python-types.md
. MR #12551 by @tiangolo. -
📝 Fix link in OAuth2 docs. MR #12550 by @tiangolo. -
📝 Add External Link: FastAPI do Zero. MR #12533 by @rennerocha. -
📝 Fix minor typos. MR #12516 by @kkirsche. -
🌐 Fix rendering issue in translations. MR #12509 by @alejsdev.
Translations
-
📝 Update includes indocs/de/docs/advanced/async-tests.md
. MR #12567 by @imjuanleonard. -
🌐 Add Portuguese translation fordocs/pt/docs/tutorial/sql-databases.md
. MR #12530 by @ilacftemp. -
🌐 Add Korean translation fordocs/ko/docs/benchmarks.md
. MR #12540 by @Limsunoh. -
🌐 Add Portuguese translation fordocs/pt/docs/how-to/separate-openapi-schemas.md
. MR #12518 by @ilacftemp. -
🌐 Update Traditional Chinese translation fordocs/zh-hant/docs/deployment/index.md
. MR #12521 by @codingjenny. -
🌐 Update Traditional Chinese translation fordocs/zh-hant/docs/deployment/cloud.md
. MR #12522 by @codingjenny. -
🌐 Update Traditional Chinese translation fordocs/zh-hant/docs/how-to/index.md
. MR #12523 by @codingjenny. -
🌐 Update Traditional Chinese translation fordocs/zh-hant/docs/tutorial/index.md
. MR #12524 by @codingjenny. -
🌐 Add Traditional Chinese translation fordocs/zh-hant/docs/how-to/index.md
. MR #12468 by @codingjenny. -
🌐 Add Traditional Chinese translation fordocs/zh-hant/docs/tutorial/index.md
. MR #12466 by @codingjenny. -
🌐 Add Portuguese translation fordocs/pt/docs/tutorial/header-param-models.md
. MR #12437 by @Joao-Pedro-P-Holanda. -
🌐 Add Portuguese translation fordocs/pt/docs/how-to/extending-openapi.md
. MR #12470 by @ilacftemp. -
🌐 Add Portuguese translation fordocs/pt/docs/advanced/dataclasses.md
. MR #12475 by @leoscarlato. -
🌐 Add Portuguese translation fordocs/pt/docs/how-to/custom-request-and-route.md
. MR #12483 by @devfernandoa.
Internal
-
⬆ Bump cloudflare/wrangler-action from 3.9 to 3.11. MR #12544 by @dependabot[bot]. -
👷 Update GitHub Action to deploy docs previews to handle missing deploy comments. MR #12527 by @tiangolo. -
⬆ [pre-commit.ci] pre-commit autoupdate. MR #12505 by @pre-commit-ci[bot].
v0.115.3
Upgrades
Docs
-
📝 Fix broken link in docs. MR #12495 by @eltonjncorreia.
Translations
-
🌐 Add Traditional Chinese translation fordocs/zh-hant/docs/fastapi-cli.md
. MR #12444 by @codingjenny. -
🌐 Add Traditional Chinese translation fordocs/zh-hant/docs/deployment/index.md
. MR #12439 by @codingjenny. -
🌐 Add Portuguese translation fordocs/pt/docs/how-to/testing-database.md
. MR #12472 by @GuilhermeRameh. -
🌐 Add Portuguese translation fordocs/pt/docs/how-to/custom-docs-ui-assets.md
. MR #12473 by @devluisrodrigues. -
🌐 Add Portuguese translation fordocs/pt/docs/advanced/response-headers.md
. MR #12458 by @leonardopaloschi. -
🌐 Add Traditional Chinese translation fordocs/zh-hant/docs/deployment/cloud.md
. MR #12440 by @codingjenny. -
🌐 Update Portuguese translation fordocs/pt/docs/python-types.md
. MR #12428 by @ceb10n. -
🌐 Add Russian translation fordocs/ru/docs/environment-variables.md
. MR #12436 by @wisderfin. -
🌐 Add Traditional Chinese translation fordocs/zh-hant/docs/resources/index.md
. MR #12443 by @codingjenny. -
🌐 Add Traditional Chinese translation fordocs/zh-hant/docs/about/index.md
. MR #12438 by @codingjenny. -
🌐 Add Portuguese translation fordocs/pt/docs/tutorial/query-param-models.md
. MR #12414 by @ceb10n. -
🌐 Remove Portuguese translation fordocs/pt/docs/deployment.md
. MR #12427 by @ceb10n. -
🌐 Add Portuguese translation fordocs/pt/docs/tutorial/body-updates.md
. MR #12381 by @andersonrocha0. -
🌐 Add Portuguese translation fordocs/pt/docs/advanced/response-cookies.md
. MR #12417 by @Paulofalcao2002.
Internal
-
👷 Update issue manager workflow . MR #12457 by @alejsdev. -
🔧 Update team, include YuriiMotov🚀 . MR #12453 by @tiangolo. -
👷 Refactor label-approved, make it an internal script instead of an external GitHub Action. MR #12280 by @tiangolo. -
👷 Fix smokeshow, checkout files on CI. MR #12434 by @tiangolo. -
👷 Use uv in CI. MR #12281 by @tiangolo. -
⬆ Update httpx requirement from <0.25.0,>=0.23.0 to >=0.23.0,<0.28.0. MR #11509 by @dependabot[bot].
v0.115.2
Upgrades
-
⬆ ️ Upgrade Starlette to>=0.37.2,<0.41.0
. MR #12431 by @tiangolo.
v0.115.1
Fixes
-
🐛 Fix openapi generation with responses kwarg. MR #10895 by @flxdot. -
🐛 RemoveRequired
shadowing from fastapi using Pydantic v2. MR #12197 by @pachewise.
Refactors
-
♻ ️ Update type annotations for improvedpython-multipart
. MR #12407 by @tiangolo.
Docs
-
✨ Add new tutorial for SQL databases with SQLModel. MR #12285 by @tiangolo. -
📝 Add External Link: How to profile a FastAPI asynchronous request. MR #12389 by @brouberol. -
🔧 Removebase_path
formdx_include
Markdown extension in MkDocs. MR #12391 by @tiangolo. -
📝 Update link to Swagger UI configuration docs. MR #12264 by @makisukurisu. -
📝 Adding links for Playwright and Vite indocs/project-generation.md
. MR #12274 by @kayqueGovetri. -
📝 Fix small typos in the documentation. MR #12213 by @svlandeg.
Translations
-
🌐 Add Portuguese translation fordocs/pt/docs/tutorial/cookie-param-models.md
. MR #12298 by @ceb10n. -
🌐 Add Portuguese translation fordocs/pt/docs/how-to/graphql.md
. MR #12215 by @AnandaCampelo. -
🌐 Add Portuguese translation fordocs/pt/docs/advanced/security/oauth2-scopes.md
. MR #12263 by @ceb10n. -
🌐 Add Portuguese translation fordocs/pt/docs/deployment/concepts.md
. MR #12219 by @marcelomarkus. -
🌐 Add Portuguese translation fordocs/pt/docs/how-to/conditional-openapi.md
. MR #12221 by @marcelomarkus. -
🌐 Add Portuguese translation fordocs/pt/docs/advanced/response-directly.md
. MR #12266 by @Joao-Pedro-P-Holanda. -
🌐 Update Portuguese translation fordocs/pt/docs/tutorial/cookie-params.md
. MR #12297 by @ceb10n. -
🌐 Fix Korean translation fordocs/ko/docs/tutorial/index.md
. MR #12278 by @kkotipy. -
🌐 Update Portuguese translation fordocs/pt/docs/advanced/security/http-basic-auth.md
. MR #12275 by @andersonrocha0. -
🌐 Add Portuguese translation fordocs/pt/docs/deployment/cloud.md
. MR #12217 by @marcelomarkus. -
✏ ️ Fix typo indocs/es/docs/python-types.md
. MR #12235 by @JavierSanchezCastro. -
🌐 Add Dutch translation fordocs/nl/docs/environment-variables.md
. MR #12200 by @maxscheijen. -
🌐 Add Portuguese translation fordocs/pt/docs/deployment/manually.md
. MR #12210 by @JoaoGustavoRogel. -
🌐 Add Portuguese translation fordocs/pt/docs/deployment/server-workers.md
. MR #12220 by @marcelomarkus. -
🌐 Add Portuguese translation fordocs/pt/docs/how-to/configure-swagger-ui.md
. MR #12222 by @marcelomarkus.
Internal
-
⬆ [pre-commit.ci] pre-commit autoupdate. MR #12396 by @pre-commit-ci[bot]. -
🔨 Add script to generate variants of files. MR #12405 by @tiangolo. -
🔧 Add speakeasy-api tosponsors_badge.yml
. MR #12404 by @tiangolo. -
➕ Add docs dependency: markdown-include-variants. MR #12399 by @tiangolo. -
📝 Fix extra mdx-base-path paths. MR #12397 by @tiangolo. -
👷 Tweak labeler to not override custom labels. MR #12398 by @tiangolo. -
👷 Update worfkow deploy-docs-notify URL. MR #12392 by @tiangolo. -
👷 Update Cloudflare GitHub Action. MR #12387 by @tiangolo. -
⬆ Bump pypa/gh-action-pypi-publish from 1.10.1 to 1.10.3. MR #12386 by @dependabot[bot]. -
⬆ Bump mkdocstrings[python] from 0.25.1 to 0.26.1. MR #12371 by @dependabot[bot]. -
⬆ Bump griffe-typingdoc from 0.2.6 to 0.2.7. MR #12370 by @dependabot[bot]. -
⬆ [pre-commit.ci] pre-commit autoupdate. MR #12331 by @pre-commit-ci[bot]. -
🔧 Update sponsors, remove Fine.dev. MR #12271 by @tiangolo. -
⬆ [pre-commit.ci] pre-commit autoupdate. MR #12253 by @pre-commit-ci[bot]. -
✏ ️ Fix docstring typos in http security. MR #12223 by @albertvillanova.
v0.115.0
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 usingQuery
,Cookie
,Header
. MR #12199 by @tiangolo.
Translations
-
🌐 Add Portuguese translation fordocs/pt/docs/advanced/security/http-basic-auth.md
. MR #12195 by @ceb10n.
Internal
-
⬆ [pre-commit.ci] pre-commit autoupdate. MR #12204 by @pre-commit-ci[bot].
v0.114.2
Fixes
-
🐛 Fix form field regression withalias
. MR #12194 by @Wurstnase.
Translations
-
🌐 Add Portuguese translation fordocs/pt/docs/tutorial/request-form-models.md
. MR #12175 by @ceb10n. -
🌐 Add Chinese translation fordocs/zh/docs/project-generation.md
. MR #12170 by @waketzheng. -
🌐 Add Dutch translation fordocs/nl/docs/python-types.md
. MR #12158 by @maxscheijen.
Internal
-
💡 Add comments with instructions for Playwright screenshot scripts. MR #12193 by @tiangolo. -
➕ Add inline-snapshot for tests. MR #12189 by @tiangolo.
v0.114.1
Refactors
-
⚡ ️ Improve performance in request body parsing with a cache for internal model fields. MR #12184 by @tiangolo.
Docs
-
📝 Remove duplicate line in docs fordocs/en/docs/environment-variables.md
. MR #12169 by @prometek.
Translations
-
🌐 Add Portuguese translation fordocs/pt/docs/virtual-environments.md
. MR #12163 by @marcelomarkus. -
🌐 Add Portuguese translation fordocs/pt/docs/environment-variables.md
. MR #12162 by @marcelomarkus. -
🌐 Add Portuguese translation fordocs/pt/docs/tutorial/testing.md
. MR #12164 by @marcelomarkus. -
🌐 Add Portuguese translation fordocs/pt/docs/tutorial/debugging.md
. MR #12165 by @marcelomarkus. -
🌐 Add Korean translation fordocs/ko/docs/project-generation.md
. MR #12157 by @BORA040126.
Internal
-
⬆ Bump tiangolo/issue-manager from 0.5.0 to 0.5.1. MR #12173 by @dependabot[bot]. -
⬆ [pre-commit.ci] pre-commit autoupdate. MR #12176 by @pre-commit-ci[bot]. -
👷 Updateissue-manager.yml
. MR #12159 by @tiangolo. -
✏ ️ Fix typo infastapi/params.py
. MR #12143 by @surreal30.
Configuration
-
If you want to rebase/retry this MR, check this box
This MR has been generated by Renovate Bot.