Skip to content
This repository was archived by the owner on Aug 25, 2024. It is now read-only.

Commit b0b3685

Browse files
committed
df: types: Definition do not export unset fields
Signed-off-by: John Andersen <[email protected]>
1 parent e9ab864 commit b0b3685

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

dffml/df/types.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,11 @@ def export(self):
5757
exported = dict(self._asdict())
5858
if not self.lock:
5959
del exported["lock"]
60+
if not self.validate:
61+
del exported["validate"]
6062
if not self.spec:
6163
del exported["spec"]
64+
del exported["subspec"]
6265
else:
6366
exported["spec"] = export_dict(
6467
name=self.spec.__qualname__,

0 commit comments

Comments
 (0)