Skip to content

Bump fastapi from 0.112.2 to 0.113.0

Ronan Amicel requested to merge dependabot-pip-fastapi-0.113.0 into main

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

Internal

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 if embed body fields, do not overwrite fields, compute once per router, refactor internals in preparation for Pydantic models in Form, Query and others. PR #12117 by @​tiangolo.

Internal

  • ️ Temporarily revert " Add support for Pydantic models in Form parameters" to make a checkpoint release. PR #12128 by @​tiangolo.
  • Add support for Pydantic models in Form 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

Merge request reports