99class GlobalConfig (BaseModel ): # pylint: disable=too-few-public-methods
1010 """Global runtime settings for edge-endpoint behavior."""
1111
12- model_config = ConfigDict (extra = "forbid " )
12+ model_config = ConfigDict (extra = "ignore " )
1313
1414 refresh_rate : float = Field (
1515 default = 60.0 ,
@@ -27,7 +27,7 @@ class InferenceConfig(BaseModel): # pylint: disable=too-few-public-methods
2727 """
2828
2929 # Keep shared presets immutable (DEFAULT/NO_CLOUD/etc.) so one mutation cannot globally change behavior.
30- model_config = ConfigDict (extra = "forbid " , frozen = True )
30+ model_config = ConfigDict (extra = "ignore " , frozen = True )
3131
3232 name : str = Field (..., exclude = True , description = "A unique name for this inference config preset." )
3333 enabled : bool = Field (
@@ -76,7 +76,7 @@ class DetectorConfig(BaseModel): # pylint: disable=too-few-public-methods
7676 Configuration for a specific detector.
7777 """
7878
79- model_config = ConfigDict (extra = "forbid " )
79+ model_config = ConfigDict (extra = "ignore " )
8080
8181 detector_id : str = Field (..., description = "Detector ID" )
8282 edge_inference_config : str = Field (..., description = "Config for edge inference." )
@@ -85,7 +85,7 @@ class DetectorConfig(BaseModel): # pylint: disable=too-few-public-methods
8585class ConfigBase (BaseModel ):
8686 """Shared detector/inference configuration behavior for edge config models."""
8787
88- model_config = ConfigDict (extra = "forbid " )
88+ model_config = ConfigDict (extra = "ignore " )
8989
9090 edge_inference_configs : dict [str , InferenceConfig ] = Field (default_factory = dict )
9191 detectors : list [DetectorConfig ] = Field (default_factory = list )
0 commit comments