vrt 0.12.2 → 0.12.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,63 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-04/schema#",
3
+ "title": "VRT to CWE Mapping",
4
+ "description": "Mapping from the Vulnerability Rating Taxonomy to CWE",
5
+ "definitions": {
6
+ "MappingMetadata": {
7
+ "type": "object",
8
+ "properties": {
9
+ "default": { "type": "null" }
10
+ },
11
+ "required": ["default"]
12
+ },
13
+ "VRTid": { "type": "string", "pattern": "^[a-z_]*$" },
14
+ "CWE": { "type" : [ "array", "null" ],
15
+ "items" : { "type": "string", "pattern": "^CWE-[0-9]*$" },
16
+ "minItems": 1,
17
+ "uniqueItems": true
18
+ },
19
+ "Mapping": {
20
+ "type": "object",
21
+ "properties": {
22
+ "id": { "$ref": "#/definitions/VRTid" },
23
+ "cwe" : { "$ref": "#/definitions/CWE" }
24
+ },
25
+ "required": ["id", "cwe"],
26
+ "additionalProperties": false
27
+ },
28
+ "MappingParent": {
29
+ "type": "object",
30
+ "properties": {
31
+ "id": { "$ref": "#/definitions/VRTid" },
32
+ "children": {
33
+ "type": "array",
34
+ "items" : {
35
+ "anyOf": [
36
+ { "$ref": "#/definitions/MappingParent" },
37
+ { "$ref": "#/definitions/Mapping" }
38
+ ]
39
+ }
40
+ },
41
+ "cwe" : { "$ref": "#/definitions/CWE" }
42
+ },
43
+ "required": ["id", "children"],
44
+ "additionalProperties": false
45
+ }
46
+ },
47
+ "type": "object",
48
+ "required": ["metadata", "content"],
49
+ "properties": {
50
+ "metadata": {
51
+ "$ref": "#/definitions/MappingMetadata"
52
+ },
53
+ "content": {
54
+ "type": "array",
55
+ "items" : {
56
+ "anyOf": [
57
+ { "$ref": "#/definitions/MappingParent" },
58
+ { "$ref": "#/definitions/Mapping" }
59
+ ]
60
+ }
61
+ }
62
+ }
63
+ }