fix: Allow locations to be null in ProxyHost model

This commit is contained in:
Ben
2025-12-24 16:59:29 +00:00
parent ea137943fc
commit a9011ff428

View File

@@ -93,7 +93,7 @@ class ProxyHost(BaseModel):
advanced_config: str = ""
enabled: bool = True
meta: dict[str, Any] = Field(default_factory=dict)
locations: list[ProxyHostLocation] = Field(default_factory=list)
locations: list[ProxyHostLocation] | None = None
# Optional expanded relations
owner: Owner | None = None
certificate: Certificate | None = None