Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API response cleanup #15389

Merged
merged 2 commits into from
Dec 7, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading