diff --git a/determinsitic-id-checker.py b/determinsitic-id-checker.py new file mode 100644 index 00000000..9f45a020 --- /dev/null +++ b/determinsitic-id-checker.py @@ -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() \ No newline at end of file