cti-python-stix2 icon indicating copy to clipboard operation
cti-python-stix2 copied to clipboard

Disallow creating 2.1 pattern with StringConstants in place of TimestampConstants

Open clenk opened this issue 4 years ago • 0 comments

When manually creating pattern objects using the classes in https://github.com/oasis-open/cti-python-stix2/blob/master/stix2/patterns.py, it is possible to create invalid STIX 2.1 patterns that use a StringConstant where they should use a TimestampConstant.

This doesn't affect parsing of patterns, and the pattern validator should still catch this error. Thus, this is deemed to be a low priority issue currently, but feel free to leave a comment if this is something you need fixed.

Related: #400

clenk avatar Jun 05 '20 15:06 clenk