cti-python-stix2/stix2/v21
Michael Chisholm d87718c15c Bug fixes, hackage removal, and some pre-commit stylistic
fixes.

- Fixed bugged logic in _STIXBase._check_at_least_one_property(),
and revamped the code to be simpler and clearer.

- Changed custom extension registration to auto-create an
"extension_type" property based on the attribute of that
name on the custom class, if present.

- The custom extension registration change above uncovered
what seemed like a bug in a unit test: a custom extension
was registered, but it was not given an extension type.  The
test used the extension as extension_type="property-extension";
this now causes a standard error about an extra property.  I
fixed the test to assign the custom extension the proper type.
2021-06-30 17:50:00 -04:00
..
__init__.py `stix-extension` to `extension-definition` 2020-12-22 21:59:18 -05:00
base.py Bug fixes, hackage removal, and some pre-commit stylistic 2021-06-30 17:50:00 -04:00
bundle.py Merge branch 'master' into dev-extensions-proposal 2021-06-13 01:48:33 -04:00
common.py Bug fixes, hackage removal, and some pre-commit stylistic 2021-06-30 17:50:00 -04:00
observables.py Bug fixes, hackage removal, and some pre-commit stylistic 2021-06-30 17:50:00 -04:00
sdo.py Merge branch 'master' into dev-extensions-proposal 2021-06-13 01:48:33 -04:00
sro.py update hyperlinks to STIX 2.1 CS 02 2021-02-19 23:27:41 -05:00
vocab.py Bug fixes, hackage removal, and some pre-commit stylistic 2021-06-30 17:50:00 -04:00