Bump fastapi from 0.112.2 to 0.114.1
Bumps fastapi from 0.112.2 to 0.114.1.
Release notes
Sourced from fastapi's releases.
0.114.1
Refactors
⚡ ️ Improve performance in request body parsing with a cache for internal model fields. PR #12184 by@tiangolo
.Docs
📝 Remove duplicate line in docs fordocs/en/docs/environment-variables.md
. PR #12169 by@prometek
.Translations
🌐 Add Portuguese translation fordocs/pt/docs/virtual-environments.md
. PR #12163 by@marcelomarkus
.🌐 Add Portuguese translation fordocs/pt/docs/environment-variables.md
. PR #12162 by@marcelomarkus
.🌐 Add Portuguese translation fordocs/pt/docs/tutorial/testing.md
. PR #12164 by@marcelomarkus
.🌐 Add Portuguese translation fordocs/pt/docs/tutorial/debugging.md
. PR #12165 by@marcelomarkus
.🌐 Add Korean translation fordocs/ko/docs/project-generation.md
. PR #12157 by@BORA040126
.Internal
⬆ Bump tiangolo/issue-manager from 0.5.0 to 0.5.1. PR #12173 by@dependabot[bot]
.⬆ [pre-commit.ci] pre-commit autoupdate. PR #12176 by@pre-commit-ci[bot]
.👷 Updateissue-manager.yml
. PR #12159 by@tiangolo
.✏ ️ Fix typo infastapi/params.py
. PR #12143 by@surreal30
.0.114.0
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"}
:from typing import Annotated from fastapi import FastAPI, Form from pydantic import BaseModel app = FastAPI() class FormData(BaseModel): username: str password: str model_config = {"extra": "forbid"} @app.post("/login/") async def login(data: Annotated[FormData, Form()]): return data
Read the new docs: Form Models - Forbid Extra Form Fields.
Features
... (truncated)
Commits
-
212fd5e
🔖 Release version 0.114.1 -
8dc882f
📝 Update release notes -
b0eedbb
⚡ ️ Improve performance in request body parsing with a cache for internal mode... -
7445118
📝 Update release notes -
a4c5f7f
📝 Update release notes -
eb45bad
📝 Update release notes -
944b6e5
🌐 Add Portuguese translation fordocs/pt/docs/virtual-environments.md
(#12163) -
e69ba26
🌐 Add Portuguese translation fordocs/pt/docs/environment-variables.md
(#12... -
a4a7925
🌐 Add Portuguese translation fordocs/pt/docs/tutorial/testing.md
(#12164) -
73d4f34
📝 Update release notes - Additional commits viewable in compare view