Skip to content

Comments

Update dependency fastapi to ~=0.114.0#29

Merged
renovate[bot] merged 1 commit intomainfrom
renovate/fastapi-0.x
Sep 6, 2024
Merged

Update dependency fastapi to ~=0.114.0#29
renovate[bot] merged 1 commit intomainfrom
renovate/fastapi-0.x

Conversation

@renovate
Copy link
Contributor

@renovate renovate bot commented Sep 6, 2024

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
fastapi (changelog) ~=0.113.0 -> ~=0.114.0 age adoption passing confidence

Release Notes

fastapi/fastapi (fastapi)

v0.114.0

Compare Source

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
Docs
Internal
  • ✅ Update internal tests for latest Pydantic, including CI tweaks to install the latest Pydantic. PR #​12147 by @​tiangolo.

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Enabled.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate bot added the renovate label Sep 6, 2024
@renovate renovate bot enabled auto-merge September 6, 2024 18:32
@github-actions
Copy link

github-actions bot commented Sep 6, 2024

Coverage

Python 3.x Coverage Report
FileStmtsMissCoverMissing
__init__.py50100% 
authentication.py19478%17, 23, 27, 34
fastauth.py13653%14–16, 18, 21, 24
models.py60886%42, 50–56
routes.py382923%14–16, 18–20, 22–24, 26–28, 30–32, 34–36, 38–40, 42–44, 46–50
token.py33293%29–30
TOTAL1684970% 

Tests Skipped Failures Errors Time
5 0 💤 0 ❌ 0 🔥 3.269s ⏱️

@renovate renovate bot merged commit e55c00d into main Sep 6, 2024
@renovate renovate bot deleted the renovate/fastapi-0.x branch September 6, 2024 18:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants