]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
ci: check json schema sets always additionalProperties
authorPhilippe Antoine <pantoine@oisf.net>
Mon, 8 Sep 2025 19:05:33 +0000 (21:05 +0200)
committerVictor Julien <victor@inliniac.net>
Sat, 13 Sep 2025 06:40:10 +0000 (08:40 +0200)
Even if it is set to true.
Avoids forgetting adding fields and thinking it is tested

.github/workflows/builds.yml

index a99abc5dd8a858f5129d6b0d3266ef72c325c11f..7cb2d426dadfa3fde518479b8385158c6ef4020c 100644 (file)
@@ -237,6 +237,9 @@ jobs:
       - name: Check EVE schema ordering
         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"
+
   almalinux-9:
     name: AlmaLinux 9 (schema)
     runs-on: ubuntu-latest