Update dependency fastapi to v0.113.0
This MR contains the following updates:
Package | Update | Change |
---|---|---|
fastapi (changelog) | minor |
==0.112.2 -> ==0.113.0
|
⚠ WarningSome dependencies could not be looked up. Check the warning logs for more information.
Release Notes
fastapi/fastapi (fastapi)
v0.113.0
Now you can declare form fields with Pydantic models:
from typing import Annotated
from fastapi import FastAPI, Form
from pydantic import BaseModel
app = FastAPI()
class FormData(BaseModel):
username: str
password: str
@​app.post("/login/")
async def login(data: Annotated[FormData, Form()]):
return data
Read the new docs: Form Models.
Features
-
✨ Add support for Pydantic models inForm
parameters. MR #12129 by @tiangolo.
Internal
-
🔧 Update sponsors: Coherence link. MR #12130 by @tiangolo.
v0.112.4
This release is mainly a big internal refactor to enable adding support for Pydantic models for Form
fields, but that feature comes in the next release.
This release shouldn't affect apps using FastAPI in any way. You don't even have to upgrade to this version yet. It's just a checkpoint.
Refactors
-
♻ ️ Refactor deciding ifembed
body fields, do not overwrite fields, compute once per router, refactor internals in preparation for Pydantic models inForm
,Query
and others. MR #12117 by @tiangolo.
Internal
-
⏪ ️ Temporarily revert "✨ Add support for Pydantic models inForm
parameters" to make a checkpoint release. MR #12128 by @tiangolo. -
✨ Add support for Pydantic models inForm
parameters. MR #12127 by @tiangolo. Reverted to make a checkpoint release with only refactors.
v0.112.3
This release is mainly internal refactors, it shouldn't affect apps using FastAPI in any way. You don't even have to upgrade to this version yet. There are a few bigger releases coming right after.
Refactors
-
♻ ️ Refactor internalcheck_file_field()
, rename toensure_multipart_is_installed()
to clarify its purpose. MR #12106 by @tiangolo. -
♻ ️ Rename internalcreate_response_field()
tocreate_model_field()
as it's used for more than response models. MR #12103 by @tiangolo. -
♻ ️ Refactor and simplify internal data fromsolve_dependencies()
using dataclasses. MR #12100 by @tiangolo. -
♻ ️ Refactor and simplify internalanalyze_param()
to structure data with dataclasses instead of tuple. MR #12099 by @tiangolo. -
♻ ️ Refactor and simplify dependencies data structures with dataclasses. MR #12098 by @tiangolo.
Docs
-
📝 Add External Link: Techniques and applications of SQLAlchemy global filters in FastAPI. MR #12109 by @TheShubhendra. -
📝 Add note abouttime.perf_counter()
in middlewares. MR #12095 by @tiangolo. -
📝 Tweak middleware code sampletime.time()
totime.perf_counter()
. MR #11957 by @domdent. -
🔧 Update sponsors: Coherence. MR #12093 by @tiangolo. -
📝 Fix async test example not to trigger DeprecationWarning. MR #12084 by @marcinsulikowski. -
📝 Updatedocs_src/path_params_numeric_validations/tutorial006.py
. MR #11478 by @MuhammadAshiqAmeer. -
📝 Update comma indocs/en/docs/async.md
. MR #12062 by @Alec-Gillis. -
📝 Update docs about serving FastAPI: ASGI servers, Docker containers, etc.. MR #12069 by @tiangolo. -
📝 Clarifyresponse_class
parameter, validations, and returning a response directly. MR #12067 by @tiangolo. -
📝 Fix minor typos and issues in the documentation. MR #12063 by @svlandeg. -
📝 Add note in Docker docs about ensuring graceful shutdowns and lifespan events withCMD
exec form. MR #11960 by @GPla.
Translations
-
🌐 Add Dutch translation fordocs/nl/docs/features.md
. MR #12101 by @maxscheijen. -
🌐 Add Portuguese translation fordocs/pt/docs/advanced/testing-events.md
. MR #12108 by @ceb10n. -
🌐 Add Portuguese translation fordocs/pt/docs/advanced/security/index.md
. MR #12114 by @ceb10n. -
🌐 Add Dutch translation fordocs/nl/docs/index.md
. MR #12042 by @svlandeg. -
🌐 Update Chinese translation fordocs/zh/docs/how-to/index.md
. MR #12070 by @synthpop123.
Internal
-
⬆ [pre-commit.ci] pre-commit autoupdate. MR #12115 by @pre-commit-ci[bot]. -
⬆ Bump pypa/gh-action-pypi-publish from 1.10.0 to 1.10.1. MR #12120 by @dependabot[bot]. -
⬆ Bump pillow from 10.3.0 to 10.4.0. MR #12105 by @dependabot[bot]. -
💚 Setinclude-hidden-files
toTrue
when using theupload-artifact
GH action. MR #12118 by @svlandeg. -
⬆ Bump pypa/gh-action-pypi-publish from 1.9.0 to 1.10.0. MR #12112 by @dependabot[bot]. -
🔧 Update sponsors link: Coherence. MR #12097 by @tiangolo. -
🔧 Update labeler config to handle sponsorships data. MR #12096 by @tiangolo. -
🔧 Update sponsors, remove Kong. MR #12085 by @tiangolo. -
⬆ [pre-commit.ci] pre-commit autoupdate. MR #12076 by @pre-commit-ci[bot]. -
👷 Updatelatest-changes
GitHub Action. MR #12073 by @tiangolo.
Configuration
-
If you want to rebase/retry this MR, check this box
This MR has been generated by Renovate Bot.