Skip to content

Commit

Permalink
API response cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
NickM-27 authored Dec 7, 2024
1 parent bb86e71 commit ecfa060
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions frigate/api/defs/response/event_response.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from typing import Any, Optional

from pydantic import BaseModel
from pydantic import BaseModel, ConfigDict


class EventResponse(BaseModel):
Expand All @@ -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
Expand All @@ -22,6 +22,8 @@ class EventResponse(BaseModel):
model_type: Optional[str]
data: dict[str, Any]

model_config = ConfigDict(extra="forbid", protected_namespaces=())


class EventCreateResponse(BaseModel):
success: bool
Expand Down

0 comments on commit ecfa060

Please sign in to comment.