Update observables.py

Add missing common properties in decorator closes #484
pull/1/head
Emmanuelle Vargas-Gonzalez 2021-01-27 11:31:14 -05:00 committed by GitHub
parent 03b3423cbb
commit 77d20c787a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

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