From 113d499a6103decc93b91ce13cb25fad66b9708a Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Sun, 25 Oct 2026 08:09:44 -0500 Subject: [PATCH] Update fastapi requirement from ==0.153.* to ==0.159.* in /docker/main (#24783) * Update fastapi requirement from ==0.153.* to ==0.159.* in /docker/main Updates the requirements on [fastapi](https://github.com/fastapi/fastapi) to permit the latest version. - [Release notes](https://github.com/fastapi/fastapi/releases) - [Commits](https://github.com/fastapi/fastapi/compare/0.153.0...0.159.1) --- updated-dependencies: - dependency-name: fastapi dependency-version: 0.159.1 dependency-type: direct:production ... Signed-off-by: dependabot[bot] * Move enum param hints to json_schema_extra for fastapi 0.159 FastAPI 0.159 no longer accepts extra keyword arguments on Path() and Query(), so passing enum= raised a TypeError on import. Co-Authored-By: Claude Opus 5.5 --------- Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Josh Hawkins <32435876+hawkeye217@users.noreply.github.com> Co-authored-by: Claude Opus 5.5 --- docker/main/requirements-wheels.txt | 2 +- frigate/api/app.py | 2 +- frigate/api/media.py | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/docker/main/requirements-wheels.txt b/docker/main/requirements-wheels.txt index d2409065ef..6d133693a2 100644 --- a/docker/main/requirements-wheels.txt +++ b/docker/main/requirements-wheels.txt @@ -4,7 +4,7 @@ click == 8.5.* aiohttp == 3.14.* starlette == 1.9.* starlette-context == 0.5.* -fastapi[standard-no-fastapi-cloud-cli] == 0.153.* +fastapi[standard-no-fastapi-cloud-cli] == 0.159.* uvicorn == 0.54.* slowapi == 0.1.* joserfc == 1.7.* diff --git a/frigate/api/app.py b/frigate/api/app.py index c500f2b141..ed39ffd2c8 100644 --- a/frigate/api/app.py +++ b/frigate/api/app.py @@ -1315,7 +1315,7 @@ def nvinfo(): dependencies=[Depends(require_role(["admin"]))], ) async def logs( - service: str = Path(enum=["frigate", "nginx", "go2rtc"]), + service: str = Path(json_schema_extra={"enum": ["frigate", "nginx", "go2rtc"]}), download: str | None = None, stream: bool | None = False, start: int | None = 0, diff --git a/frigate/api/media.py b/frigate/api/media.py index 963e1c515c..8ca13d8860 100644 --- a/frigate/api/media.py +++ b/frigate/api/media.py @@ -337,7 +337,7 @@ async def get_snapshot_from_recording( request: Request, camera_name: str, frame_time: float, - format: str = Path(enum=["png", "jpg"]), + format: str = Path(json_schema_extra={"enum": ["png", "jpg"]}), height: int = None, ): if camera_name not in request.app.frigate_config.cameras: @@ -1061,7 +1061,7 @@ async def event_thumbnail( max_cache_age: int = Query( 2592000, description="Max cache age in seconds. Default 30 days in seconds." ), - format: str = Query(default="ios", enum=["ios", "android"]), + format: str = Query(default="ios", json_schema_extra={"enum": ["ios", "android"]}), ): thumbnail_bytes = None event_complete = False @@ -1858,7 +1858,7 @@ async def preview_mp4( async def review_preview( request: Request, event_id: str, - format: str = Query(default="gif", enum=["gif", "mp4"]), + format: str = Query(default="gif", json_schema_extra={"enum": ["gif", "mp4"]}), ): try: review: ReviewSegment = ReviewSegment.get(ReviewSegment.id == event_id)