From a62dfbb41bcb74451a68dcfb65060140790f7ae0 Mon Sep 17 00:00:00 2001 From: Emmanuelle Vargas-Gonzalez Date: Tue, 26 Jan 2021 22:17:03 -0500 Subject: [PATCH] missing common properties on CustomObservable decorator --- stix2/v21/observables.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/stix2/v21/observables.py b/stix2/v21/observables.py index e39c709..a68e3d5 100644 --- a/stix2/v21/observables.py +++ b/stix2/v21/observables.py @@ -952,8 +952,10 @@ def CustomObservable(type='x-custom-observable', properties=None, id_contrib_pro [('type', TypeProperty(type, spec_version='2.1'))], [('spec_version', StringProperty(fixed='2.1'))], [('id', IDProperty(type, spec_version='2.1'))], - [('spec_version', StringProperty(fixed='2.1'))], properties, + [('object_marking_refs', ListProperty(ReferenceProperty(valid_types='marking-definition', spec_version='2.1')))], + [('granular_markings', ListProperty(GranularMarking))], + [('defanged', BooleanProperty(default=lambda: False))], [('extensions', ExtensionsProperty(spec_version='2.1'))], ]), )