Update fastapi requirement from <0.99.0,>=0.75.2 to >=0.75.2,<0.116.0
Updates the requirements on fastapi to permit the latest version.
Release notes
Sourced from fastapi's releases.
0.115.0
Highlights
Now you can declare
Query,Header, andCookieparameters with Pydantic models. 🎉
QueryParameter ModelsUse Pydantic models for
Queryparameters:from typing import Annotated, Literalfrom fastapi import FastAPI, Query from pydantic import BaseModel, Field
app = FastAPI()
class FilterParams(BaseModel): limit: int = Field(100, gt=0, le=100) offset: int = Field(0, ge=0) order_by: Literal["created_at", "updated_at"] = "created_at" tags: list[str] = []
@app.get("/items/") async def read_items(filter_query: Annotated[FilterParams, Query()]): return filter_queryRead the new docs: Query Parameter Models.
HeaderParameter ModelsUse Pydantic models for
Headerparameters:from typing import Annotatedfrom fastapi import FastAPI, Header from pydantic import BaseModel
app = FastAPI()
class CommonHeaders(BaseModel): host: str save_data: bool if_modified_since: str | None = None traceparent: str | None = None </tr></table>
... (truncated)
Commits
40e33e4🔖 Release version 0.115.0b36047b📝 Update release notes7eadeb6📝 Update release notes55035f4✨ Add support for Pydantic models for parameters usingQuery,Cookie, `He...0903da7📝 Update release notes4b2b14a⬆ [pre-commit.ci] pre-commit autoupdate (#12204)35df20c📝 Update release notes8eb3c56🌐 Add Portuguese translation for `docs/pt/docs/advanced/security/http-basic-a...2ada161🔖 Release version 0.114.23a5fd71📝 Update release notes- Additional commits viewable in compare view
Most Recent Ignore Conditions Applied to This Pull Request
| Dependency Name | Ignore Conditions |
|---|---|
| fastapi | [>= 0.100.a, < 0.101] |
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot mergewill merge this PR after your CI passes on it@dependabot squash and mergewill squash and merge this PR after your CI passes on it@dependabot cancel mergewill cancel a previously requested merge and block automerging@dependabot reopenwill reopen this PR if it is closed@dependabot closewill close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency@dependabot ignore this major versionwill close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this minor versionwill close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
@dependabot rebase
@dependabot rebase
Sorry, only users with push access can use that command.