Skip to content

[REQUEST] Implement uniqueness validation for STIX bundle objects #62

@seansica

Description

@seansica

Feature Request

Add validation to ensure that all objects within a STIX bundle have unique id values. Currently, the schema does not prevent duplicate objects (objects with the same id) from being included in a bundle's objects array.

Proposed Solution

Implement the createUniqueObjectsOnlyRefinement function that validates each object's id is unique within the bundle. The refinement should:

  • Track all object IDs as the array is validated
  • Report clear error messages when duplicates are found, including the duplicate ID value
  • Report the path to each duplicate object for easy debugging

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions