Skip to content

Conversation

seansica
Copy link
Contributor

  1. Resolves some issues relating to object_marking_refs and x_mitre_contributors

    • object_marking_refs was permitting empty lists : changed to enforce .nonempty(). Though the field itself is still optional, if it is defined, it must be non empty.
    • Updated a few x_mitre_contributors definitions to use the more robust xMitreContributorsSchema rather than defining custom schemas directly within the SDO schema itself
  2. Additionally, the ADM now exports a global const called ATTACK_SPEC_VERSION that returns the current spec version (3.3.0 as of now) to allow ADM library users to determine the spec version within their respective installations.

…ibutors to robust validator

- object_marking_refs was redeclared directly in software.schema as opposed to inheriting from stix-core
- Moreover, it was declared as required despite being optional in the STIX 2.1 spec
- Additionally, x_mitre_contributors was specified as an optional string array
- It should have been mapped to the more robust xMitreContributors schema, which ensures that string elements and the list itself are non-empty
@seansica seansica self-assigned this Sep 18, 2025
@seansica seansica added the bug Something isn't working label Sep 18, 2025
@seansica seansica requested a review from clemiller September 18, 2025 17:24
@elucchesileon elucchesileon self-requested a review September 18, 2025 17:34
@elucchesileon elucchesileon merged commit c407718 into main Sep 18, 2025
4 checks passed
Copy link

🎉 This PR is included in version 4.4.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working released
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants