]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
doc: really enforce more the completeness of json schema 13863/head
authorPhilippe Antoine <pantoine@oisf.net>
Sun, 14 Sep 2025 19:50:12 +0000 (21:50 +0200)
committerVictor Julien <victor@inliniac.net>
Wed, 17 Sep 2025 07:23:55 +0000 (09:23 +0200)
Completes commit f1f32a39eebe16dbedf9189714772a5915e83f3f

End better describe exception_policy

.github/workflows/builds.yml
etc/schema.json

index 825eaf49d585229b5503bf0b65ef93993bbe7863..10c6207bb1a6a181c8db6b504002cf8eca4cf9f3 100644 (file)
@@ -238,7 +238,7 @@ jobs:
         run: ./scripts/schema-sort.py --check ./etc/schema.json
 
       - name: Check EVE schema has all additionalProperties
-        run: test $(cat etc/schema.json | 'paths( objects | (.type == "object" and (has("additionalProperties") | not) )) | join(".")' | wc -l) = "0"
+        run: test $(cat etc/schema.json | jq 'paths( objects | (.type == "object" and (has("additionalProperties") | not) )) | join(".")' | wc -l) = "0"
 
   almalinux-9:
     name: AlmaLinux 9 (schema)
index 5c55e73fc02a21c51b229e42ccc1452c13f657a7..d3a9d65a7dc0ac4696aff0eac434fa1f48d84097 100644 (file)
                     "properties": {
                         "app_layer": {
                             "type": "object",
-                            "error": {
-                                "description":
+                            "additionalProperties": false,
+                            "properties": {
+                                "error": {
+                                    "description":
                                         "Consolidated stats on how many times app-layer error exception policy was applied, and which one",
-                                "$ref": "#/$defs/exceptionPolicy"
+                                        "$ref": "#/$defs/exceptionPolicy"
+                                }
                             }
                         },
                         "defrag": {
                             "type": "object",
-                            "memcap": {
-                                "description":
+                            "additionalProperties": false,
+                            "properties": {
+                                "memcap": {
+                                    "description":
                                         "How many times defrag memcap exception policy was applied, and which one",
-                                "$ref": "#/$defs/exceptionPolicy"
+                                        "$ref": "#/$defs/exceptionPolicy"
+                                }
                             }
                         },
                         "flow": {
                             "type": "object",
-                            "memcap": {
-                                "description":
+                            "additionalProperties": false,
+                            "properties": {
+                                "memcap": {
+                                    "description":
                                         "How many times flow memcap exception policy was applied, and which one",
-                                "$ref": "#/$defs/exceptionPolicy"
+                                        "$ref": "#/$defs/exceptionPolicy"
+                                }
                             }
                         },
                         "tcp": {
                             "type": "object",
-                            "midstream": {
-                                "description":
+                            "additionalProperties": false,
+                            "properties": {
+                                "midstream": {
+                                    "description":
                                         "How many times midstream exception policy was applied, and which one",
-                                "$ref": "#/$defs/exceptionPolicy"
-                            },
-                            "ssn_memcap": {
-                                "description":
-                                        "How many times session memcap exception policy was applied, and which one",
-                                "$ref": "#/$defs/exceptionPolicy"
-                            },
-                            "reassembly": {
-                                "description":
+                                        "$ref": "#/$defs/exceptionPolicy"
+                                },
+                                "reassembly": {
+                                    "description":
                                         "How many times reassembly memcap exception policy was applied, and which one",
-                                "$ref": "#/$defs/exceptionPolicy"
+                                        "$ref": "#/$defs/exceptionPolicy"
+                                },
+                                "ssn_memcap": {
+                                    "description":
+                                        "How many times session memcap exception policy was applied, and which one",
+                                        "$ref": "#/$defs/exceptionPolicy"
+                                }
                             }
                         }
                     }