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.0
- disallow additional properties for CSAF 2.0
  • Loading branch information
tschmidtb51 committed Nov 18, 2024
1 parent 51ee0e9 commit b38141e
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions csaf_2.0/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.0/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.0"]
}
}
}
},
"additionalProperties": false
}

0 comments on commit b38141e

Please sign in to comment.