Skip to content

Commit 79fbb2b

Browse files
committed
Revert "do not include objects with"
This reverts commit 8011fee.
1 parent 8011fee commit 79fbb2b

File tree

1 file changed

+7
-18
lines changed

1 file changed

+7
-18
lines changed

contentctl/output/api_json_output.py

Lines changed: 7 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@
1616

1717
from contentctl.output.json_writer import JsonWriter
1818

19-
EXCLUDE_NONE: bool = True
20-
2119

2220
class ApiJsonOutput:
2321
output_path: pathlib.Path
@@ -53,8 +51,7 @@ def writeDetections(
5351
"source",
5452
"nes_fields",
5553
]
56-
),
57-
exclude_none=EXCLUDE_NONE,
54+
)
5855
)
5956
for detection in objects
6057
]
@@ -81,10 +78,7 @@ def writeMacros(
8178
objects: list[Macro],
8279
) -> None:
8380
macros = [
84-
macro.model_dump(
85-
include=set(["definition", "description", "name"]),
86-
exclude_none=EXCLUDE_NONE,
87-
)
81+
macro.model_dump(include=set(["definition", "description", "name"]))
8882
for macro in objects
8983
]
9084
for macro in macros:
@@ -117,8 +111,7 @@ def writeStories(
117111
"baseline_names",
118112
"detections",
119113
]
120-
),
121-
exclude_none=EXCLUDE_NONE,
114+
)
122115
)
123116
for story in objects
124117
]
@@ -164,8 +157,7 @@ def writeBaselines(
164157
"references",
165158
"tags",
166159
]
167-
),
168-
exclude_none=EXCLUDE_NONE,
160+
)
169161
)
170162
for baseline in objects
171163
]
@@ -198,8 +190,7 @@ def writeInvestigations(
198190
"tags",
199191
"lowercase_name",
200192
]
201-
),
202-
exclude_none=EXCLUDE_NONE,
193+
)
203194
)
204195
for investigation in objects
205196
]
@@ -227,8 +218,7 @@ def writeLookups(
227218
"min_matches",
228219
"case_sensitive_match",
229220
]
230-
),
231-
exclude_none=EXCLUDE_NONE,
221+
)
232222
)
233223
for lookup in objects
234224
]
@@ -258,8 +248,7 @@ def writeDeployments(
258248
"rba",
259249
"tags",
260250
]
261-
),
262-
exclude_none=EXCLUDE_NONE,
251+
)
263252
)
264253
for deployment in objects
265254
]

0 commit comments

Comments
 (0)