Skip to content

Bump fastapi from 0.112.2 to 0.114.1

24-03-dependabot requested to merge dependabot-pip-fastapi-0.114.1 into main

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 for docs/en/docs/environment-variables.md. PR #12169 by @​prometek.

Translations

Internal

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 for docs/pt/docs/virtual-environments.md (#12163)
  • e69ba26 🌐 Add Portuguese translation for docs/pt/docs/environment-variables.md (#12...
  • a4a7925 🌐 Add Portuguese translation for docs/pt/docs/tutorial/testing.md (#12164)
  • 73d4f34 📝 Update release notes
  • Additional commits viewable in compare view

Merge request reports