Stefano Ortolani
0a37bcc259
Fix test CI/CD
2024-12-18 13:59:48 +00:00
Christian Studer
a4a59a7ba8
Merge branch 'master' of github.com:oasis-open/cti-python-stix2
2024-10-15 13:36:08 +02:00
Alexandre Dulaunoy
68ba448a9e
Merge pull request #599 from PedroHenriqueFernandes/add-pretty-parameter
...
feat: add 'pretty' parameter to optimize JSON serialization performance
2024-10-15 11:43:40 +02:00
Ming Fang
a2beb46f35
Add extra blank line to make pre-commit happy.
2024-09-25 11:53:29 -04:00
Ming Fang
12ada44a63
Add trailing comma expected by the pre-commit hook.
2024-09-24 17:10:24 -04:00
Ming Fang
6299ff9b38
Add v21 test for GranularMarking to close #586 .
2024-09-20 15:55:55 -04:00
Ming Fang
d2d7161fb5
Fix issue #586 .
2024-09-20 15:55:36 -04:00
Pedro Henrique Fernandes
280d34531c
feat: add 'pretty' parameter to optimize JSON serialization performance
2024-07-11 10:58:10 -03:00
Rich Piazza
4f0e1d205a
fiux test-environments - weights changed
2024-03-16 13:53:34 -04:00
Christian Studer
344454e399
Merge branch 'master' of github.com:oasis-open/cti-python-stix2
2023-01-25 11:59:53 +01:00
Chris Lenk
8c29b12fa1
Update docs dependencies
...
Fixes issues with doc builds failing.
2022-10-17 11:53:28 -04:00
Christian Studer
f09b4bf50b
fix: [package] Bumped latest package version
2022-08-24 10:52:51 +02:00
Christian Studer
f6a53d1524
Merge branch 'master' of github.com:oasis-open/cti-python-stix2
2022-08-22 14:49:45 +02:00
Emily Ratliff
56396119e6
Merge pull request #542 from chisholm/fix_detect_spec_version
...
Fix detect_spec_version() with respect to 2.0 bundles
2022-08-02 10:54:10 -05:00
Christian Studer
625576622f
fix: [interoperability] Added missing `interoperability` param to Property classes that need it
2022-05-23 14:48:11 +02:00
Christian Studer
276410537d
chg: [interoperability] The interoperability is managed directly within the needed properties
2022-05-23 11:54:41 +02:00
Christian Studer
9a966f45c3
chg: [interoperability] Removed changes on interoperability parameters
...
- Since the code changed a lot, there is no longer
need to deal with it in the classes defined in
the files concerned here
2022-05-23 11:46:54 +02:00
Christian Studer
d229bd3cd1
Merge branch 'master' of github.com:oasis-open/cti-python-stix2
2022-05-16 10:35:51 +02:00
Michael Chisholm
3dba3f74f9
Fix more pre-commit style issues.
2022-04-28 21:39:59 -04:00
Michael Chisholm
724122db65
pre-commit styling changes
2022-04-28 21:23:05 -04:00
Michael Chisholm
e534e41865
Complete the addition of AST node class override support which
...
was begun by frank7y. Added some unit tests.
Also address a design flaw which prevented the AST builder
function create_pattern_object() from honoring module_suffix
and module_name parameters after the first call.
2022-04-28 21:10:12 -04:00
Michael Chisholm
b5260c95f6
Fix utils.detect_spec_version() to use presence of the
...
spec_version property in a bundle to infer spec version, not
the property's value. Update unit tests accordingly.
2022-02-18 21:33:13 -05:00
chrisr3d
eea34ebbb5
fix: [interoperability] Avoiding validation issues with extensions properties
2022-02-10 20:41:57 +01:00
chrisr3d
6ec45d863c
fix: [interoperability] Added missing interoperability flag in Observable Objects v2.1
2022-02-10 20:41:06 +01:00
chrisr3d
7dda3375fd
Merge branch 'master' of github.com:oasis-open/cti-python-stix2 into main
2022-02-09 21:10:13 +01:00
francescosettanni
1e4b6caf3f
improved pattern visitor support of custom classes
2022-01-31 10:48:01 +01:00
Michael Chisholm
3086b7ab5b
Fix pattern semantic equivalence bug: comparison expression
...
DNF transform could trigger an error from the AST code which
does the SCO type checks on comparison expression ANDs. The
transform had been ignoring SCO types. Now, it will catch
the exception and drop the AND from the pattern. Added a
couple new unit tests for this.
2021-12-23 00:59:41 -05:00
chrisr3d
519a5cb8fa
Merge branch 'master' of github.com:oasis-open/cti-python-stix2 into main
2021-10-07 01:01:26 +02:00
Chris Lenk
81550cab92
Bump version: 3.0.0 → 3.0.1
2021-09-24 09:34:37 -04:00
chrisr3d
8ab39f75f7
Merge branch 'master' of github.com:oasis-open/cti-python-stix2 into main
2021-08-31 19:02:36 +02:00
Michael Chisholm
659e1fd90d
Fix transform from Filter object to TAXII filter to look at
...
the filter operator; TAXII filters only support equals.
2021-08-26 20:55:35 -04:00
Michael Chisholm
a4ce0222bf
Move and edit a comment about HTTP status code 416 to reduce
...
confusion.
2021-08-24 15:04:05 -04:00
Michael Chisholm
a3d1056122
Fix TAXIICollectionSource.query() to propagate HTTPErrors
...
instead of ignoring them. Special-cased 416, since that can
occur naturally while paging with TAXII 2.0.
2021-08-24 00:15:50 -04:00
maybe-sybr
bd897c9848
improv: Check reference prop types for all customs
...
Previously the requirement that properties ending in `_ref(s)` were
instances of an appropriate type capable of containing a STIX
`identifier` (the current interpretation of section 3.1 of the STIX 2.1
spec) was only enforced for custom observables. This change refactors
the property checks for custom objects to enforce this and the STIX 2.1
property name requirement (also from section 3.1) in a common helper,
therefore extending the enforcement of both requirements to all custom
object types created by downstream projects.
There is a special case carved out for STIX 2.0 observables which are
required to contain "object references" rather than identifiers. This
special logic is encoded in the reference property validation helper and
enabled by a kwarg which is passed exclusively by the custom observable
registration helper.
2021-07-22 14:55:14 +10:00
chrisr3d
03f4ae1f4a
Merge branch 'master' of github.com:oasis-open/cti-python-stix2 into main
2021-07-21 19:17:51 +02:00
Michael Chisholm
d7981dce9f
Stop the flake8 hook from complaining about a line in a unit
...
test that it is misunderstanding and shouldn't be complaining
about.
2021-07-12 14:40:54 -04:00
Michael Chisholm
b2108e90c6
pre-commit stylistic fixes
2021-07-12 14:33:56 -04:00
Michael Chisholm
f0779d7802
Add unit tests for self-enabling extensions support, and for
...
compliance checking on toplevel extension property names.
2021-07-09 20:28:32 -04:00
Michael Chisholm
945e3375aa
Fix extension registration to not only check nested properties
...
for spec compliance, but also the toplevel properties, if any.
2021-07-09 20:24:31 -04:00
Michael Chisholm
e99be67c1e
Remove registration._get_extension_class() since it's redundant
...
with registry.class_for_type().
2021-07-09 18:11:11 -04:00
Michael Chisholm
34e82e489f
Fix marking definition extension unit test to use a plain
...
old CustomExtension.
Add a unit test for a custom extension-based marking definition
where the extension is of type "toplevel-property-extension".
2021-07-08 23:06:57 -04:00
Michael Chisholm
d27e9e6e55
Back out changes to the CustomMarking decorator and registration,
...
to revert its behavior to what it did before: register a type
for old-style non-extension custom markings.
2021-07-08 22:18:28 -04:00
Rich Piazza
26bc1d5220
Bump version: 2.1.0 → 3.0.0
2021-07-08 14:57:59 -04:00
chisholm
17170e65d1
Merge pull request #517 from oasis-open/fix-links
...
Fix links
2021-07-07 16:16:52 -04:00
Rich Piazza
3ce193aca6
Merge pull request #468 from oasis-open/dev-extensions-proposal
...
Extensions Support
2021-07-07 16:10:01 -04:00
Michael Chisholm
bb164ad1ae
Small change to a unit test
2021-07-07 16:06:04 -04:00
Rich Piazza
3a0297c597
replaced links with stix-v2.1-os
2021-07-07 15:03:28 -04:00
Rich Piazza
02bf33eedf
Merge branch 'dev-extensions-proposal' of github.com:oasis-open/cti-python-stix2 into dev-extensions-proposal
2021-07-07 13:43:10 -04:00
Michael Chisholm
638689c481
Add another check to the test_toplevel_ext_prop_meta()
...
unit test.
2021-07-07 13:03:13 -04:00
Rich Piazza
d6a1aa9f74
Merge branch 'dev-extensions-proposal' of github.com:oasis-open/cti-python-stix2 into dev-extensions-proposal
2021-07-07 11:02:05 -04:00