Skip to content

Commit 291050d

Browse files
authored
Merge pull request #828 from tschmidtb51/tests
Tests
2 parents 5c58320 + b38141e commit 291050d

File tree

2 files changed

+25
-3
lines changed

2 files changed

+25
-3
lines changed

csaf_2.0/test/validator/testcases_json_schema.json

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,10 +79,20 @@
7979
}
8080
},
8181
"required": [
82+
"$schema",
8283
"tests",
8384
"testschema_version"
8485
],
8586
"properties": {
87+
"$schema": {
88+
"title": "JSON schema",
89+
"description": "Contains the URL of the JSON schema for test data which the document promises to be valid for.",
90+
"type": "string",
91+
"enum": [
92+
"https://raw.githubusercontent.com/oasis-tcs/csaf/master/csaf_2.0/test/validator/testcases_json_schema.json"
93+
],
94+
"format": "uri"
95+
},
8696
"tests": {
8797
"title": "List of tests",
8898
"description": "Contains a list of test data.",
@@ -99,5 +109,6 @@
99109
"type": "string",
100110
"enum": ["2.0"]
101111
}
102-
}
103-
}
112+
},
113+
"additionalProperties": false
114+
}

csaf_2.1/test/validator/testcases_json_schema.json

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,10 +79,20 @@
7979
}
8080
},
8181
"required": [
82+
"$schema",
8283
"tests",
8384
"testschema_version"
8485
],
8586
"properties": {
87+
"$schema": {
88+
"title": "JSON schema",
89+
"description": "Contains the URL of the JSON schema for test data which the document promises to be valid for.",
90+
"type": "string",
91+
"enum": [
92+
"https://raw.githubusercontent.com/oasis-tcs/csaf/master/csaf_2.1/test/validator/testcases_json_schema.json"
93+
],
94+
"format": "uri"
95+
},
8696
"tests": {
8797
"title": "List of tests",
8898
"description": "Contains a list of test data.",
@@ -99,5 +109,6 @@
99109
"type": "string",
100110
"enum": ["2.1"]
101111
}
102-
}
112+
},
113+
"additionalProperties": false
103114
}

0 commit comments

Comments
 (0)