From: Philippe Antoine Date: Mon, 8 Sep 2025 19:05:33 +0000 (+0200) Subject: ci: check json schema sets always additionalProperties X-Git-Tag: suricata-8.0.1~13 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=266809a0f22500cba30f7fd5597c2583c95ae848;p=thirdparty%2Fsuricata.git ci: check json schema sets always additionalProperties Even if it is set to true. Avoids forgetting adding fields and thinking it is tested --- diff --git a/.github/workflows/builds.yml b/.github/workflows/builds.yml index a99abc5dd8..7cb2d426da 100644 --- a/.github/workflows/builds.yml +++ b/.github/workflows/builds.yml @@ -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