missing common properties on CustomObservable decorator

pull/1/head
Emmanuelle Vargas-Gonzalez 2021-01-26 22:17:03 -05:00
parent a48af17cf9
commit a62dfbb41b
1 changed files with 3 additions and 1 deletions

View File

@ -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'))],
]),
)