2308528957add text and example for equivalence.ipynb
Emmanuelle Vargas-Gonzalez
2021-02-19 14:48:23 -0500
5067a3ff76couple of changes after merging against master
Emmanuelle Vargas-Gonzalez
2021-02-19 10:05:56 -0500
35f4bb0443Update the semantic equivalence user guide page Differentiate between similarity and equivalence, and update functions to their new names and locations.
Chris Lenk
2021-02-18 23:42:06 -0500
Merge pull request #491 from emmanvg/graph-eq-changes
Chris Lenk
2021-02-18 23:44:39 -0500
b7b1b54afbRemove 'six' from config
Chris Lenk
2021-02-18 23:39:24 -0500
528d956f4aSpecify lowest supported Python version
Chris Lenk
2021-02-18 20:45:38 -0500
a8b6fa2100Merge branch 'master' of github.com:oasis-open/cti-python-stix2 into dev-extensions-proposal
Emmanuelle Vargas-Gonzalez
2021-02-18 16:04:30 -0500
b4a0a9ea10Remove six dependency (backwards breaking) We've already removed Python 2 from our test harness, but this removes all python 2 compatibility code left in.
Chris Lenk
2021-02-18 12:26:54 -0500
Merge pull request #490 from chisholm/rename_canonical
Chris Lenk
2021-02-14 21:08:10 -0500
745696cba1Remove "canonical" from a couple more places in docstrings which I missed.
Michael Chisholm
2021-02-14 19:25:59 -0500
ccaa8b62aepre-commit stylistic fix
Michael Chisholm
2021-02-11 19:35:28 -0500
631460f45fRename various symbols and change various comments to refer to normalization instead of canonicalization.
Michael Chisholm
2021-02-11 19:33:57 -0500
Merge pull request #489 from chisholm/fix_xform_followedby_order
Chris Lenk
2021-02-05 10:00:48 -0500
5a210192bdpre-commit stylistic fix
Michael Chisholm
2021-02-04 17:33:25 -0500
9e9a61c71cFix bug with observation expression DNF transformer, where it was not preserving operand order when distributing FOLLOWEDBY.
Michael Chisholm
2021-02-04 16:45:39 -0500
Merge pull request #485 from oasis-open/emmanvg-patch-1
Chris Lenk
2021-01-29 09:52:00 -0500
624d71ed53pre-commit stylistic fixes
Michael Chisholm
2021-01-26 21:24:10 -0500
0dd6462d60Add some unit tests which try to version marking-definitions.
Michael Chisholm
2020-08-24 18:58:53 -0400
a97645abc3Add some missing docstrings on a few exception classes.
Michael Chisholm
2020-08-24 17:04:56 -0400
c74d06aadcImprove versioning.new_version() to better handle custom objects and dicts, and add better raised exception types if versioning couldn't be done. I changed workbench monkeypatching a bit, to copy some class attributes over to the workbench wrapper class-like callables, since some code expected those attributes to be there (e.g. the versioning code).
Michael Chisholm
2020-08-24 16:57:40 -0400
Update is_sro docstring
Chris Lenk
2021-01-28 22:54:52 -0500
98b0b2ed41pre-commit stylistic fix
Michael Chisholm
2021-01-28 19:32:27 -0500
83abf78af5Remove old compatibility code regarding importing the old stix2.core module.
Michael Chisholm
2021-01-28 19:21:57 -0500
eead72aabcFix docstring typo in is_marking(). Made a minor docstring update to is_sro() as well, so it doesn't talk as if you can register custom SROs. That didn't actually make sense.
Michael Chisholm
2021-01-27 22:25:41 -0500
a62dfbb41bmissing common properties on CustomObservable decorator
Emmanuelle Vargas-Gonzalez
2021-01-26 22:17:03 -0500
f9b9e0d2d7pre-commit stylistic fixes
Michael Chisholm
2021-01-20 20:59:10 -0500
404fcd04caRemove some ugly python2 compatibilty code from stix2.versioning module, since we no longer support python2.
Michael Chisholm
2021-01-20 20:58:13 -0500
38067a6ec7pre-commit stylistic fixes
Michael Chisholm
2021-01-20 20:49:01 -0500
92a478b39bA minor revision to stix2.versioning: it's silly to look up a class in the registry when you have an instance of one of those classes. Because in that case, you can just get the class of the instance and not deal with the registry at all.
Michael Chisholm
2021-01-20 19:42:06 -0500
5aadf1ae91Add some unit tests for attempting to change ID contributing properties of a 2.1 SCO with UUIDv5 ID, when creating a new version.
Michael Chisholm
2021-01-20 19:16:22 -0500
473e7d0068Change versioning module to use some of the is_* utility functions. Changed some ">= 2.1" stix version semantics to be "== 2.1", because we don't have any version >= 2.1, so they are currently equivalent, and the is_*() functions don't support STIX version ranges. They only support exact versions. We can look at this again if a newer STIX version ever emerges.
Michael Chisholm
2021-01-19 23:08:55 -0500
fe2330af07Improve is_sdo() et al utility functions with respect to dict/mapping values: do a simple verification of the value's STIX version, not just its type. Added a lot more unit tests to test behavior on dicts. To make the implementation work, I had to move the detect_spec_version() function out of the parsing module and into utils. So that required small changes at all its previous call sites.
Michael Chisholm
2021-01-19 19:57:05 -0500
f8c86f7352Fixups after a rebase. There were several conflict resolutions and I probably forgot some stuff...
Michael Chisholm
2021-01-15 19:12:14 -0500
bf284d0a0bFix silly docstring copy-paste typo
Michael Chisholm
2021-01-14 20:55:38 -0500
db1d0b736bRemove registry.get_stix2_class_maps(), since now that the class map structure is keyed by normal "X.Y" style versions, the convenience that function provided is no longer necessary. So it no longer makes sense to have the function (at least, not for that reason). Change users of that function to use the STIX2_OBJ_MAPS structure directly.
Michael Chisholm
2021-01-13 21:46:32 -0500
f88fba6751Change the stix2 class map structure to be keyed at the top level with STIX versions in the same format as is used everywhere else in the API: "X.Y", as opposed to the "vXY" format used by the version-specific python packages. This eliminates all of the awkward conversion from public API format to "vXX" format.
Michael Chisholm
2021-01-13 21:09:40 -0500
188f704b28Remove a "this needs to be moved into the stix2 library" comment, since this *is* in the stix2 library!
Michael Chisholm
2021-01-12 21:17:34 -0500
24307626b0Move get_stix2_class_maps() from .utils to .registry (since it's really just a simple accessor into the class maps table), and change other code to use it, in places where it was simple and made sense.
Michael Chisholm
2021-01-12 16:30:26 -0500
0f2ce0ac72Add unit tests for the is_*() utility type checking functions.
Michael Chisholm
2021-01-11 20:38:31 -0500
51937232dbFix to an import statement which was necessary due to the circular import refactoring. I think I just forgot to include this in the previous commit...
Michael Chisholm
2021-01-11 20:35:41 -0500
fa6cff8a34WIP adding is_sdo() et al functions to this library. On hold while I address circular import problems.
Michael Chisholm
2021-01-06 18:59:48 -0500
5d016142cfSmall tweaks: move the definition of DEFAULT_VERSION from the top-level stix2 package to stix2.version but import it into stix2. This makes it possible for someone to get the symbol without needing to import all of stix2.
Michael Chisholm
2021-01-13 11:22:34 -0500
f51e309775Refactor stix2.parsing into more focused modules: - stix2.registry, which contains the class mapping structure and code for scanning stix2 modules for its initial population - stix2.registration, which contains code used to register custom STIX types with the registry - stix2.parsing, which contains code for creating instances of registered stix2 classes from raw dicts.
Michael Chisholm
2021-01-08 22:08:33 -0500
a86b21dbf7add checks for MarkingDefinition requirements
Emmanuelle Vargas-Gonzalez
2020-12-23 16:15:31 -0500
6a6f13c37brename the Class auto-naming from 'STIXExtension' to 'ExtensionDefinition'
Emmanuelle Vargas-Gonzalez
2020-12-23 16:07:30 -0500
a3fce3686aMerge branch 'master' of github.com:oasis-open/cti-python-stix2 into dev-extensions-proposal
Emmanuelle Vargas-Gonzalez
2020-12-23 15:08:10 -0500
ef2ef95c3a`stix-extension` to `extension-definition`
Emmanuelle Vargas-Gonzalez
2020-12-22 21:59:18 -0500