Skip to content

Commit 61d99ed

Browse files
committed
remove the 'forbid' from a few classes
that restated it. but this is not necessary if they inherit from SecurityContentObject
1 parent d11009d commit 61d99ed

File tree

2 files changed

+1
-10
lines changed

2 files changed

+1
-10
lines changed

contentctl/objects/data_source.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ class TA(BaseModel):
99
url: HttpUrl | None = None
1010
version: str
1111
class DataSource(SecurityContentObject):
12-
model_config = ConfigDict(extra="forbid")
1312
source: str = Field(...)
1413
sourcetype: str = Field(...)
1514
separator: Optional[str] = None

contentctl/objects/deployment.py

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,7 @@
1010
from contentctl.objects.enums import DeploymentType
1111

1212

13-
class Deployment(SecurityContentObject):
14-
model_config = ConfigDict(extra="forbid")
15-
#id: str = None
16-
#date: str = None
17-
#author: str = None
18-
#description: str = None
19-
#contentType: SecurityContentType = SecurityContentType.deployments
20-
21-
13+
class Deployment(SecurityContentObject):
2214
scheduling: DeploymentScheduling = Field(...)
2315
alert_action: AlertAction = AlertAction()
2416
type: DeploymentType = Field(...)

0 commit comments

Comments
 (0)