From d0cc8cb64b1c8bc1d2a66a83e41079681bee76cc Mon Sep 17 00:00:00 2001 From: Nicolas Mowen Date: Fri, 6 Dec 2024 20:07:43 -0600 Subject: [PATCH] API response cleanup (#15389) * API response cleanup * Remove extra field definition --- frigate/api/defs/response/event_response.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/frigate/api/defs/response/event_response.py b/frigate/api/defs/response/event_response.py index 75cf670dc..17b9b166f 100644 --- a/frigate/api/defs/response/event_response.py +++ b/frigate/api/defs/response/event_response.py @@ -1,6 +1,6 @@ from typing import Any, Optional -from pydantic import BaseModel +from pydantic import BaseModel, ConfigDict class EventResponse(BaseModel): @@ -10,7 +10,7 @@ class EventResponse(BaseModel): camera: str start_time: float end_time: Optional[float] - false_positive: bool + false_positive: Optional[bool] zones: list[str] thumbnail: str has_clip: bool @@ -22,6 +22,8 @@ class EventResponse(BaseModel): model_type: Optional[str] data: dict[str, Any] + model_config = ConfigDict(protected_namespaces=()) + class EventCreateResponse(BaseModel): success: bool