From b38141ec7a306f3b3ff7d44fa18eb66a74f499d6 Mon Sep 17 00:00:00 2001 From: tschmidtb51 <65305130+tschmidtb51@users.noreply.github.com> Date: Tue, 19 Nov 2024 00:25:25 +0100 Subject: [PATCH] Tests - addresses parts of oasis-tcs/csaf#824 - add missing `$schema` to testdata schema for CSAF 2.0 - disallow additional properties for CSAF 2.0 --- .../test/validator/testcases_json_schema.json | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/csaf_2.0/test/validator/testcases_json_schema.json b/csaf_2.0/test/validator/testcases_json_schema.json index b66e05e90..d43de3f8f 100644 --- a/csaf_2.0/test/validator/testcases_json_schema.json +++ b/csaf_2.0/test/validator/testcases_json_schema.json @@ -79,10 +79,20 @@ } }, "required": [ + "$schema", "tests", "testschema_version" ], "properties": { + "$schema": { + "title": "JSON schema", + "description": "Contains the URL of the JSON schema for test data which the document promises to be valid for.", + "type": "string", + "enum": [ + "https://raw.githubusercontent.com/oasis-tcs/csaf/master/csaf_2.0/test/validator/testcases_json_schema.json" + ], + "format": "uri" + }, "tests": { "title": "List of tests", "description": "Contains a list of test data.", @@ -99,5 +109,6 @@ "type": "string", "enum": ["2.0"] } - } -} \ No newline at end of file + }, + "additionalProperties": false +}