]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
eve-parity: merge $ref props into current object
authorJason Ish <jason.ish@oisf.net>
Fri, 7 Mar 2025 17:05:05 +0000 (18:05 +0100)
committerVictor Julien <victor@inliniac.net>
Sun, 9 Mar 2025 06:29:34 +0000 (07:29 +0100)
Allows for a "suricata" entry along with a "$ref".

scripts/eve-parity.py

index 3fbe1a03ff24102c5d70c8f5be4daf07a613126d..1af50f56165696f8039f9730d9c602b7e37670e7 100755 (executable)
@@ -88,7 +88,7 @@ def load_schema():
                 ref = find_ref(schema, props["$ref"])
                 if not ref:
                     raise Exception("$ref not found: {}".format(props["$ref"]))
-                props = ref
+                props = props | ref
             if props["type"] in ["string", "integer", "boolean", "number"]:
                 # End of the line...
                 key = ".".join(path + [name])