Skip to content

Commit ab067ea

Browse files
committed
allow unknown fields
1 parent bc7d739 commit ab067ea

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ packages = [
99
{include = "**/*.py", from = "src"},
1010
]
1111
readme = "README.md"
12-
version = "0.25.0"
12+
version = "0.25.1"
1313

1414
[tool.poetry.dependencies]
1515
# For certifi, use ">=" instead of "^" since it upgrades its "major version" every year, not really following semver

src/groundlight/edge/config.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
class 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
8585
class 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

Comments
 (0)