cti-python-stix2/stix2/v21
Michael Chisholm 8bbf5fa461 Make extension instances work the same as other objects, with
respect to properties.  Before, properties were declared on
toplevel-property-extension extensions as if they were going
to be used in the normal way (as actual properties on instances
of the extension), but they were not used that way, and there
was some ugly hackage to make it work.  Despite the fact that
property instances were given during extension registration,
they were not used to typecheck, set defaults, etc on toplevel
property extension properties.

I changed how registration and object initialization works with
respect to properties associated with extensions.  Now,
extensions work the same as any other object and code is
cleaner.  Property instances associated with registered toplevel
extensions are used to enforce requirements like any other
object.

Added some unit tests specifically for property cleaning for
extensions.

Property order (for those contexts where it matters) is updated
to be spec-defined, toplevel extension, custom.
2021-07-06 14:27:40 -04:00
..
__init__.py
base.py
bundle.py
common.py Make extension instances work the same as other objects, with 2021-07-06 14:27:40 -04:00
observables.py Make extension instances work the same as other objects, with 2021-07-06 14:27:40 -04:00
sdo.py Make extension instances work the same as other objects, with 2021-07-06 14:27:40 -04:00
sro.py
vocab.py