From a95a46361984a96ad123a833626752aa6ffacfe3 Mon Sep 17 00:00:00 2001 From: Chris Lenk Date: Mon, 21 Jun 2021 10:56:24 -0400 Subject: [PATCH] Add Sighting.summary default value See also #507. --- stix2/v21/sro.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stix2/v21/sro.py b/stix2/v21/sro.py index e6eada6..c3756d4 100644 --- a/stix2/v21/sro.py +++ b/stix2/v21/sro.py @@ -87,7 +87,7 @@ class Sighting(_RelationshipObject): ('sighting_of_ref', ReferenceProperty(valid_types="SDO", spec_version='2.1', required=True)), ('observed_data_refs', ListProperty(ReferenceProperty(valid_types='observed-data', spec_version='2.1'))), ('where_sighted_refs', ListProperty(ReferenceProperty(valid_types=['identity', 'location'], spec_version='2.1'))), - ('summary', BooleanProperty()), + ('summary', BooleanProperty(default=lambda: False)), ('revoked', BooleanProperty(default=lambda: False)), ('labels', ListProperty(StringProperty)), ('confidence', IntegerProperty()),