Skip to content

Commit

Permalink
deterministic-id-checker
Browse files Browse the repository at this point in the history
  • Loading branch information
rpiazza committed Aug 19, 2024
1 parent 50fd81f commit 33455bd
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions determinsitic-id-checker.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import json
import stix2

def main():
with open("sco-examples-bundle.json", "r", encoding="utf-8") as examples:
all_examples = json.load(examples)
for obj in all_examples:
existing_id = obj["id"]
del obj["id"]
stix_obj = stix2.parse(obj)
print(f"id {existing_id} should be {stix_obj['id']}")


if __name__ == "__main__":
main()

0 comments on commit 33455bd

Please sign in to comment.