Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bugfix/182 do not allow sdo in obj ref prop #240

Conversation

openmorse
Copy link
Contributor

@openmorse openmorse commented Oct 22, 2024

Adds a test for object_refs validity:
stix2validator/test/v21/observed_data_tests.py::ObservedDataTestCases::test_invalid_object_refs

Per schema, SDO object name patterns should Fail as object_refs in observables. SCO and SRO should be allowed.

Updated: fixed submodule pinning.

@rpiazza
Copy link
Contributor

rpiazza commented Oct 22, 2024

David - looks like the pinning has some issues. Maybe get Chris to help...

@openmorse
Copy link
Contributor Author

openmorse commented Oct 22, 2024

David - looks like the pinning has some issues. Maybe get Chris to help...

Will do, thanks. Dave

Update: done.

@openmorse
Copy link
Contributor Author

Updated submodule pinning to latest schema 2.1 commit:
73592de

@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 94.80%. Comparing base (3552d63) to head (73592de).
Report is 23 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #240      +/-   ##
==========================================
+ Coverage   94.36%   94.80%   +0.44%     
==========================================
  Files          66       69       +3     
  Lines        6211     6586     +375     
==========================================
+ Hits         5861     6244     +383     
+ Misses        350      342       -8     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@rpiazza rpiazza merged commit 765f3c3 into oasis-open:master Nov 8, 2024
9 checks passed
@openmorse openmorse deleted the bugfix/182-do-not-allow-sdo-in-sco-obj-ref-prop branch November 8, 2024 15:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants