Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(deps): update dependency fastapi to ^0.114.0 (fastapi) (#152)
This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [fastapi](https://redirect.github.com/fastapi/fastapi) ([changelog](https://fastapi.tiangolo.com/release-notes/)) | `^0.113.0` -> `^0.114.0` | [![age](https://developer.mend.io/api/mc/badges/age/pypi/fastapi/0.114.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/pypi/fastapi/0.114.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/pypi/fastapi/0.113.0/0.114.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/pypi/fastapi/0.113.0/0.114.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes <details> <summary>fastapi/fastapi (fastapi)</summary> ### [`v0.114.0`](https://redirect.github.com/fastapi/fastapi/releases/tag/0.114.0) [Compare Source](https://redirect.github.com/fastapi/fastapi/compare/0.113.0...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"}`: ```python 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](https://fastapi.tiangolo.com/tutorial/request-form-models/#forbid-extra-form-fields). ##### Features - ✨ Add support for forbidding extra form fields with Pydantic models. PR [#​12134](https://redirect.github.com/fastapi/fastapi/pull/12134) by [@​tiangolo](https://redirect.github.com/tiangolo). ##### Docs - 📝 Update docs, Form Models section title, to match config name. PR [#​12152](https://redirect.github.com/fastapi/fastapi/pull/12152) by [@​tiangolo](https://redirect.github.com/tiangolo). ##### Internal - ✅ Update internal tests for latest Pydantic, including CI tweaks to install the latest Pydantic. PR [#​12147](https://redirect.github.com/fastapi/fastapi/pull/12147) by [@​tiangolo](https://redirect.github.com/tiangolo). </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/ddoroshev/pylerplate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOC41OS4yIiwidXBkYXRlZEluVmVyIjoiMzguNTkuMiIsInRhcmdldEJyYW5jaCI6ImZhc3RhcGkiLCJsYWJlbHMiOltdfQ==--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
- Loading branch information
35debb4
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Coverage Report