From 4a0469a69c54a467ba6528943f88b6ecb9b7ce12 Mon Sep 17 00:00:00 2001 From: Josh Hawkins <32435876+hawkeye217@users.noreply.github.com> Date: Fri, 27 Feb 2026 16:25:43 -0600 Subject: [PATCH] pydantic title and description --- frigate/config/camera/mask.py | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/frigate/config/camera/mask.py b/frigate/config/camera/mask.py index 98031f043..dbe0f063c 100644 --- a/frigate/config/camera/mask.py +++ b/frigate/config/camera/mask.py @@ -14,15 +14,18 @@ class MotionMaskConfig(FrigateBaseModel): friendly_name: Optional[str] = Field( default=None, - title="Motion mask friendly name used in the Frigate UI.", + title="Friendly name", + description="A friendly name for this motion mask used in the Frigate UI", ) enabled: bool = Field( default=True, - title="Enable this motion mask.", + title="Enabled", + description="Enable or disable this motion mask", ) coordinates: Union[str, list[str]] = Field( default="", - title="Coordinates polygon for the motion mask.", + title="Coordinates", + description="Ordered x,y coordinates defining the motion mask polygon used to include/exclude areas.", ) raw_coordinates: Union[str, list[str]] = "" enabled_in_config: Optional[bool] = Field( @@ -49,15 +52,18 @@ class ObjectMaskConfig(FrigateBaseModel): friendly_name: Optional[str] = Field( default=None, - title="Object mask friendly name used in the Frigate UI.", + title="Friendly name", + description="A friendly name for this object mask used in the Frigate UI", ) enabled: bool = Field( default=True, - title="Enable this object mask.", + title="Enabled", + description="Enable or disable this object mask", ) coordinates: Union[str, list[str]] = Field( default="", - title="Coordinates polygon for the object mask.", + title="Coordinates", + description="Ordered x,y coordinates defining the object mask polygon used to include/exclude areas.", ) raw_coordinates: Union[str, list[str]] = "" enabled_in_config: Optional[bool] = Field(