From: Jason Ish Date: Fri, 7 Mar 2025 17:05:05 +0000 (+0100) Subject: eve-parity: merge $ref props into current object X-Git-Tag: suricata-8.0.0-beta1~304 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=facd525692f1ea8f46136d68bf89cda683460373;p=thirdparty%2Fsuricata.git eve-parity: merge $ref props into current object Allows for a "suricata" entry along with a "$ref". --- diff --git a/scripts/eve-parity.py b/scripts/eve-parity.py index 3fbe1a03ff..1af50f5616 100755 --- a/scripts/eve-parity.py +++ b/scripts/eve-parity.py @@ -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])