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
Traceback (most recent call last):
File "...\testx_selector_bug.py", line 42, in <module>
marked_vuln = vuln.add_markings(stix2.TLP_GREEN, "external_references.[0].source_name")
File "...\cti-python-stix2\stix2\markings\__init__.py", line 153, in add_markings
return granular_markings.add_markings(obj, marking, selectors)
File "...\cti-python-stix2\stix2\markings\granular_markings.py", line 165, in add_markings
utils.validate(obj, selectors)
File "...\cti-python-stix2\stix2\markings\utils.py", line 50, in validate
raise exceptions.InvalidSelectorError(obj, s)
stix2.exceptions.InvalidSelectorError: Selector external_references.[0].source_name in Vulnerability is not valid!
The text was updated successfully, but these errors were encountered:
Selector validation fails to validate compliant selectors. Here is an example taken from STIX 2.1 spec section 7.2.3.1:
This results in error:
The text was updated successfully, but these errors were encountered: