Compare commits

...
Author SHA1 Message Date
Josh HawkinsandClaude Opus 5.5 e4fe07833e 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 <noreply@anthropic.com>
2026-10-25 08:00:41 -05:00
dependabot[bot]andGitHub 5dd9972837 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] <support@github.com>
2026-10-25 11:33:59 +00:00
3 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -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.*
+1 -1
View File
@@ -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,
+3 -3
View File
@@ -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)