Skip to content

Commit

Permalink
Tests
Browse files Browse the repository at this point in the history
- addresses parts of #824
- add missing `$schema` to testdata schema for CSAF 2.1
- disallow additional properties for CSAF 2.1
  • Loading branch information
tschmidtb51 committed Nov 18, 2024
1 parent 5c58320 commit 51ee0e9
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion csaf_2.1/test/validator/testcases_json_schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -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.1/test/validator/testcases_json_schema.json"
],
"format": "uri"
},
"tests": {
"title": "List of tests",
"description": "Contains a list of test data.",
Expand All @@ -99,5 +109,6 @@
"type": "string",
"enum": ["2.1"]
}
}
},
"additionalProperties": false
}

0 comments on commit 51ee0e9

Please sign in to comment.