From 77d20c787a7c6f103ba359f9ecd6c981fdd9c1c9 Mon Sep 17 00:00:00 2001 From: Emmanuelle Vargas-Gonzalez Date: Wed, 27 Jan 2021 11:31:14 -0500 Subject: [PATCH] Update observables.py Add missing common properties in decorator closes #484 --- stix2/v21/observables.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/stix2/v21/observables.py b/stix2/v21/observables.py index 359cc6f..430afea 100644 --- a/stix2/v21/observables.py +++ b/stix2/v21/observables.py @@ -953,6 +953,9 @@ def CustomObservable(type='x-custom-observable', properties=None, id_contrib_pro [('spec_version', StringProperty(fixed='2.1'))], [('id', IDProperty(type, spec_version='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', enclosing_type=type))], ]), )