]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
schema: fix engines section
authorJason Ish <jason.ish@oisf.net>
Mon, 6 Mar 2023 17:48:45 +0000 (11:48 -0600)
committerVictor Julien <vjulien@oisf.net>
Sat, 11 Mar 2023 06:32:20 +0000 (07:32 +0100)
The definition of items is an object, not an array.

etc/schema.json

index e9ca6f0fe7fc6cff8ea7157db95b489669f5fc85..d119891928c66ef92c78a1a3190dc885e40861a9 100644 (file)
                         "engines": {
                             "type": "array",
                             "minItems": 1,
-                            "items": [
-                                {
-                                    "type": "object",
-                                    "properties": {
-                                        "id": {
-                                            "type": "integer"
-                                        },
-                                        "last_reload": {
-                                            "type": "string"
-                                        },
-                                        "rules_loaded": {
-                                            "type": "integer"
-                                        },
-                                        "rules_failed": {
-                                            "type": "integer"
-                                        }
+                            "items": {
+                                "type": "object",
+                                "properties": {
+                                    "id": {
+                                        "type": "integer"
                                     },
-                                    "additionalProperties": false
-                                }
-                            ]
+                                    "last_reload": {
+                                        "type": "string"
+                                    },
+                                    "rules_loaded": {
+                                        "type": "integer"
+                                    },
+                                    "rules_failed": {
+                                        "type": "integer"
+                                    }
+                                },
+                                "additionalProperties": false
+                            }
                         }
                     },
                     "additionalProperties": false