Skip to content

Commit e4cb761

Browse files
committed
don't serialize the verbose MitreAttackGroup object.
1 parent aec612a commit e4cb761

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

contentctl/objects/mitre_attack_enrichment.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,8 @@ class MitreAttackEnrichment(BaseModel):
6969
mitre_attack_technique: str = Field(...)
7070
mitre_attack_tactics: List[MitreTactics] = Field(...)
7171
mitre_attack_groups: List[str] = Field(...)
72-
mitre_attack_group_objects: list[MitreAttackGroup] = Field(...)
72+
#Exclude this field from serialization - it is very large and not useful in JSON objects
73+
mitre_attack_group_objects: list[MitreAttackGroup] = Field(..., exclude=True)
7374
def __hash__(self) -> int:
7475
return id(self)
76+

0 commit comments

Comments
 (0)