Bump fastapi from 0.112.2 to 0.113.0
Bumps fastapi from 0.112.2 to 0.113.0.
Release notes
Sourced from fastapi's releases.
0.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. PR #12129 by@tiangolo
.Internal
🔧 Update sponsors: Coherence link. PR #12130 by@tiangolo
.0.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. PR #12117 by@tiangolo
.Internal
⏪ ️ Temporarily revert "✨ Add support for Pydantic models inForm
parameters" to make a checkpoint release. PR #12128 by@tiangolo
.✨ Add support for Pydantic models inForm
parameters. PR #12127 by@tiangolo
. Reverted to make a checkpoint release with only refactors.0.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
... (truncated)
Commits
-
d86f660
🔖 Release version 0.113.0 -
179f838
📝 Update release notes -
afdda4e
🔧 Update sponsors: Coherence link (#12130) -
e787f85
📝 Update release notes -
7bad7c0
✨ Add support for Pydantic models inForm
parameters (#12129) -
965fc83
📝 Update release notes -
999eeb6
🔖 Release version 0.112.4 -
96c7e7e
📝 Update release notes -
8224add
📝 Update release notes -
b69e8b2
📝 Update release notes - Additional commits viewable in compare view