Skip to content

Commit

Permalink
fix(deps): update dependency fastapi to ^0.114.0 (fastapi) (#152)
Browse files Browse the repository at this point in the history
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"}

@&#8203;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
[#&#8203;12134](https://redirect.github.com/fastapi/fastapi/pull/12134)
by [@&#8203;tiangolo](https://redirect.github.com/tiangolo).

##### Docs

- 📝 Update docs, Form Models section title, to match config name. PR
[#&#8203;12152](https://redirect.github.com/fastapi/fastapi/pull/12152)
by [@&#8203;tiangolo](https://redirect.github.com/tiangolo).

##### Internal

- ✅ Update internal tests for latest Pydantic, including CI tweaks to
install the latest Pydantic. PR
[#&#8203;12147](https://redirect.github.com/fastapi/fastapi/pull/12147)
by [@&#8203;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
renovate[bot] authored Sep 6, 2024
1 parent c9e2bde commit 35debb4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ authors = ["Dima Doroshev <dima@doroshev.com>"]
python = "^3.12"
sentry-sdk = "^2.0.0"
fastapi-utils = "^0.7.0"
fastapi = "^0.113.0"
fastapi = "^0.114.0"
ujson = "^5.8.0"
requests = "^2.31.0"
aiofiles = "^24.0.0"
Expand Down

1 comment on commit 35debb4

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Coverage

Coverage Report
FileStmtsMissCoverMissing
app
   main.py15282%17–18
   views.py13285%21, 25
TOTAL46490% 

Tests Skipped Failures Errors Time
2 0 💤 0 ❌ 0 🔥 0.203s ⏱️

Please sign in to comment.