You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you pass a language content object an empty contents dictionary, you get an exception saying it must be non-empty. I do not see anywhere in the 2.1 specification that requires this.
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Users/jmg/work/cti-i18n/p/lib/python2.7/site-packages/stix2/base.py", line 161, in __init__
self._check_property(prop_name, prop_metadata, setting_kwargs)
File "/Users/jmg/work/cti-i18n/p/lib/python2.7/site-packages/stix2/base.py", line 94, in _check_property
raise InvalidValueError(self.__class__, prop_name, reason=str(exc))
stix2.exceptions.InvalidValueError: Invalid value for LanguageContent 'contents': The dictionary property must contain a non-empty dictionary
The text was updated successfully, but these errors were encountered:
@jmgnc Yes, you're correct. The observed-data.objects property has a non-empty requirement and I had copied some code for dictionary properties in general. We'll get this fixed; thanks for filing an issue!
If you pass a language content object an empty contents dictionary, you get an exception saying it must be non-empty. I do not see anywhere in the 2.1 specification that requires this.
produces:
The text was updated successfully, but these errors were encountered: