chore(deps): update dependency fastapi to v0.115.2 #16
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
==0.112.2
->==0.115.2
Release Notes
fastapi/fastapi (fastapi)
v0.115.2
Compare Source
Upgrades
>=0.37.2,<0.41.0
. PR #12431 by @tiangolo.v0.115.1
Compare Source
Fixes
Required
shadowing from fastapi using Pydantic v2. PR #12197 by @pachewise.Refactors
python-multipart
. PR #12407 by @tiangolo.Docs
base_path
formdx_include
Markdown extension in MkDocs. PR #12391 by @tiangolo.docs/project-generation.md
. PR #12274 by @kayqueGovetri.Translations
docs/pt/docs/tutorial/cookie-param-models.md
. PR #12298 by @ceb10n.docs/pt/docs/how-to/graphql.md
. PR #12215 by @AnandaCampelo.docs/pt/docs/advanced/security/oauth2-scopes.md
. PR #12263 by @ceb10n.docs/pt/docs/deployment/concepts.md
. PR #12219 by @marcelomarkus.docs/pt/docs/how-to/conditional-openapi.md
. PR #12221 by @marcelomarkus.docs/pt/docs/advanced/response-directly.md
. PR #12266 by @Joao-Pedro-P-Holanda.docs/pt/docs/tutorial/cookie-params.md
. PR #12297 by @ceb10n.docs/ko/docs/tutorial/index.md
. PR #12278 by @kkotipy.docs/pt/docs/advanced/security/http-basic-auth.md
. PR #12275 by @andersonrocha0.docs/pt/docs/deployment/cloud.md
. PR #12217 by @marcelomarkus.docs/es/docs/python-types.md
. PR #12235 by @JavierSanchezCastro.docs/nl/docs/environment-variables.md
. PR #12200 by @maxscheijen.docs/pt/docs/deployment/manually.md
. PR #12210 by @JoaoGustavoRogel.docs/pt/docs/deployment/server-workers.md
. PR #12220 by @marcelomarkus.docs/pt/docs/how-to/configure-swagger-ui.md
. PR #12222 by @marcelomarkus.Internal
sponsors_badge.yml
. PR #12404 by @tiangolo.v0.115.0
Compare Source
Highlights
Now you can declare
Query
,Header
, andCookie
parameters with Pydantic models. 🎉Query
Parameter ModelsUse Pydantic models for
Query
parameters:Read the new docs: Query Parameter Models.
Header
Parameter ModelsUse Pydantic models for
Header
parameters:Read the new docs: Header Parameter Models.
Cookie
Parameter ModelsUse Pydantic models for
Cookie
parameters: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 toHeader
andCookie
parameters).To achieve it, use Pydantic's
model_config = {"extra": "forbid"}
:This applies to
Query
,Header
, andCookie
parameters, read the new docs:Features
Query
,Cookie
,Header
. PR #12199 by @tiangolo.Translations
docs/pt/docs/advanced/security/http-basic-auth.md
. PR #12195 by @ceb10n.Internal
v0.114.2
Compare Source
Fixes
alias
. PR #12194 by @Wurstnase.Translations
docs/pt/docs/tutorial/request-form-models.md
. PR #12175 by @ceb10n.docs/zh/docs/project-generation.md
. PR #12170 by @waketzheng.docs/nl/docs/python-types.md
. PR #12158 by @maxscheijen.Internal
v0.114.1
Compare Source
Refactors
Docs
docs/en/docs/environment-variables.md
. PR #12169 by @prometek.Translations
docs/pt/docs/virtual-environments.md
. PR #12163 by @marcelomarkus.docs/pt/docs/environment-variables.md
. PR #12162 by @marcelomarkus.docs/pt/docs/tutorial/testing.md
. PR #12164 by @marcelomarkus.docs/pt/docs/tutorial/debugging.md
. PR #12165 by @marcelomarkus.docs/ko/docs/project-generation.md
. PR #12157 by @BORA040126.Internal
issue-manager.yml
. PR #12159 by @tiangolo.fastapi/params.py
. PR #12143 by @surreal30.v0.114.0
Compare Source
You can restrict form fields to only include those declared in a Pydantic model and forbid any extra field sent in the request using Pydantic's
model_config = {"extra": "forbid"}
:Read the new docs: Form Models - Forbid Extra Form Fields.
Features
Docs
Internal
v0.113.0
Compare Source
Now you can declare form fields with Pydantic models:
Read the new docs: Form Models.
Features
Form
parameters. PR #12129 by @tiangolo.Internal
v0.112.4
Compare Source
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
embed
body fields, do not overwrite fields, compute once per router, refactor internals in preparation for Pydantic models inForm
,Query
and others. PR #12117 by @tiangolo.Internal
Form
parameters" to make a checkpoint release. PR #12128 by @tiangolo.Form
parameters. PR #12127 by @tiangolo. Reverted to make a checkpoint release with only refactors.v0.112.3
Compare Source
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
check_file_field()
, rename toensure_multipart_is_installed()
to clarify its purpose. PR #12106 by @tiangolo.create_response_field()
tocreate_model_field()
as it's used for more than response models. PR #12103 by @tiangolo.solve_dependencies()
using dataclasses. PR #12100 by @tiangolo.analyze_param()
to structure data with dataclasses instead of tuple. PR #12099 by @tiangolo.Docs
time.perf_counter()
in middlewares. PR #12095 by @tiangolo.time.time()
totime.perf_counter()
. PR #11957 by @domdent.docs_src/path_params_numeric_validations/tutorial006.py
. PR #11478 by @MuhammadAshiqAmeer.docs/en/docs/async.md
. PR #12062 by @Alec-Gillis.response_class
parameter, validations, and returning a response directly. PR #12067 by @tiangolo.CMD
exec form. PR #11960 by @GPla.Translations
docs/nl/docs/features.md
. PR #12101 by @maxscheijen.docs/pt/docs/advanced/testing-events.md
. PR #12108 by @ceb10n.docs/pt/docs/advanced/security/index.md
. PR #12114 by @ceb10n.docs/nl/docs/index.md
. PR #12042 by @svlandeg.docs/zh/docs/how-to/index.md
. PR #12070 by @synthpop123.Internal
include-hidden-files
toTrue
when using theupload-artifact
GH action. PR #12118 by @svlandeg.latest-changes
GitHub Action. PR #12073 by @tiangolo.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.
👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.
This PR has been generated by Renovate Bot.