Remove unnecessary ObservedData constraint

first_observed and last_observed are both required, so this co-constraint was removed from WD04.
master
Chris Lenk 2019-06-26 11:18:47 -04:00
parent 58ff89f112
commit 28ac284b84
1 changed files with 0 additions and 4 deletions

View File

@ -369,10 +369,6 @@ class ObservedData(STIXDomainObject):
def _check_object_constraints(self): def _check_object_constraints(self):
super(self.__class__, self)._check_object_constraints() 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') first_observed = self.get('first_observed')
last_observed = self.get('last_observed') last_observed = self.get('last_observed')