Merge pull request #485 from oasis-open/emmanvg-patch-1

Update CustomObservale decorator
pull/1/head
Chris Lenk 2021-01-29 09:52:00 -05:00 committed by GitHub
commit bfc47e73f5
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))],
]),
)