From 28ac284b849f1cfb0459c377fbfa6a934dca1164 Mon Sep 17 00:00:00 2001 From: Chris Lenk Date: Wed, 26 Jun 2019 11:18:47 -0400 Subject: [PATCH] Remove unnecessary ObservedData constraint first_observed and last_observed are both required, so this co-constraint was removed from WD04. --- stix2/v21/sdo.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/stix2/v21/sdo.py b/stix2/v21/sdo.py index 70e81e4..46ce231 100644 --- a/stix2/v21/sdo.py +++ b/stix2/v21/sdo.py @@ -369,10 +369,6 @@ class ObservedData(STIXDomainObject): def _check_object_constraints(self): super(self.__class__, self)._check_object_constraints() - if self.get('number_observed', 1) == 1: - self._check_properties_dependency(['first_observed'], ['last_observed']) - self._check_properties_dependency(['last_observed'], ['first_observed']) - first_observed = self.get('first_observed') last_observed = self.get('last_observed')