mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-10-26 08:24:42 +03:00
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] <support@github.com> * 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> --------- Signed-off-by: dependabot[bot] <support@github.com> 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 <noreply@anthropic.com>
This commit is contained in:
co-authored by
dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Josh Hawkins
Claude Opus 5.5
parent
ccb58bdff4
commit
113d499a61
@@ -4,7 +4,7 @@ click == 8.5.*
|
|||||||
aiohttp == 3.14.*
|
aiohttp == 3.14.*
|
||||||
starlette == 1.9.*
|
starlette == 1.9.*
|
||||||
starlette-context == 0.5.*
|
starlette-context == 0.5.*
|
||||||
fastapi[standard-no-fastapi-cloud-cli] == 0.153.*
|
fastapi[standard-no-fastapi-cloud-cli] == 0.159.*
|
||||||
uvicorn == 0.54.*
|
uvicorn == 0.54.*
|
||||||
slowapi == 0.1.*
|
slowapi == 0.1.*
|
||||||
joserfc == 1.7.*
|
joserfc == 1.7.*
|
||||||
|
|||||||
+1
-1
@@ -1315,7 +1315,7 @@ def nvinfo():
|
|||||||
dependencies=[Depends(require_role(["admin"]))],
|
dependencies=[Depends(require_role(["admin"]))],
|
||||||
)
|
)
|
||||||
async def logs(
|
async def logs(
|
||||||
service: str = Path(enum=["frigate", "nginx", "go2rtc"]),
|
service: str = Path(json_schema_extra={"enum": ["frigate", "nginx", "go2rtc"]}),
|
||||||
download: str | None = None,
|
download: str | None = None,
|
||||||
stream: bool | None = False,
|
stream: bool | None = False,
|
||||||
start: int | None = 0,
|
start: int | None = 0,
|
||||||
|
|||||||
@@ -337,7 +337,7 @@ async def get_snapshot_from_recording(
|
|||||||
request: Request,
|
request: Request,
|
||||||
camera_name: str,
|
camera_name: str,
|
||||||
frame_time: float,
|
frame_time: float,
|
||||||
format: str = Path(enum=["png", "jpg"]),
|
format: str = Path(json_schema_extra={"enum": ["png", "jpg"]}),
|
||||||
height: int = None,
|
height: int = None,
|
||||||
):
|
):
|
||||||
if camera_name not in request.app.frigate_config.cameras:
|
if camera_name not in request.app.frigate_config.cameras:
|
||||||
@@ -1061,7 +1061,7 @@ async def event_thumbnail(
|
|||||||
max_cache_age: int = Query(
|
max_cache_age: int = Query(
|
||||||
2592000, description="Max cache age in seconds. Default 30 days in seconds."
|
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
|
thumbnail_bytes = None
|
||||||
event_complete = False
|
event_complete = False
|
||||||
@@ -1858,7 +1858,7 @@ async def preview_mp4(
|
|||||||
async def review_preview(
|
async def review_preview(
|
||||||
request: Request,
|
request: Request,
|
||||||
event_id: str,
|
event_id: str,
|
||||||
format: str = Query(default="gif", enum=["gif", "mp4"]),
|
format: str = Query(default="gif", json_schema_extra={"enum": ["gif", "mp4"]}),
|
||||||
):
|
):
|
||||||
try:
|
try:
|
||||||
review: ReviewSegment = ReviewSegment.get(ReviewSegment.id == event_id)
|
review: ReviewSegment = ReviewSegment.get(ReviewSegment.id == event_id)
|
||||||
|
|||||||
Reference in New Issue
Block a user