Skip to content

Commit 7a6b03a

Browse files
SSVC JSON Schema 2020-12 (#654)
- change `definitions`to `$defs` Co-authored-by: Allen D. Householder <ahouseholder@users.noreply.github.com>
1 parent 0f6dd40 commit 7a6b03a

File tree

3 files changed

+13
-13
lines changed

3 files changed

+13
-13
lines changed

data/schema/v1/Decision_Point-1-0-1.schema.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"title": "Decision Point schema definition",
44
"$id": "https://certcc.github.io/SSVC/data/schema/v1/Decision_Point-1-0-1.schema.json",
55
"description": "Decision points are the basic building blocks of SSVC decision functions. Individual decision points describe a single aspect of the input to a decision function.",
6-
"definitions": {
6+
"$defs": {
77
"schemaVersion": {
88
"description": "Schema version used to represent this Decision Point",
99
"type": "string",
@@ -37,7 +37,7 @@
3737
"additionalProperties": false,
3838
"properties": {
3939
"schemaVersion": {
40-
"$ref": "#/definitions/schemaVersion"
40+
"$ref": "#/$defs/schemaVersion"
4141
},
4242
"namespace": {
4343
"type": "string",
@@ -65,7 +65,7 @@
6565
"type": "array",
6666
"minItems": 1,
6767
"items": {
68-
"$ref": "#/definitions/decision_point_value"
68+
"$ref": "#/$defs/decision_point_value"
6969
}
7070
}
7171
},
@@ -80,5 +80,5 @@
8080
]
8181
}
8282
},
83-
"$ref": "#/definitions/decision_point"
83+
"$ref": "#/$defs/decision_point"
8484
}

data/schema/v1/Decision_Point_Group-1-0-1.schema.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"$schema": "https://json-schema.org/draft/2020-12/schema",
33
"title": "Decision Points Group schema definition",
44
"$id": "https://certcc.github.io/SSVC/data/schema/v1/Decision_Point_Group-1-0-1.schema.json",
5-
"definitions": {
5+
"$defs": {
66
"schemaVersion": {
77
"description": "Schema version used to represent Decision Point Group",
88
"type": "string",
@@ -13,7 +13,7 @@
1313
"additionalProperties": false,
1414
"properties": {
1515
"schemaVersion": {
16-
"$ref": "#/definitions/schemaVersion"
16+
"$ref": "#/$defs/schemaVersion"
1717
},
1818
"version": {
1919
"type": "string",
@@ -44,6 +44,6 @@
4444
]
4545
}
4646
},
47-
"$ref": "#/definitions/decision_point_group"
47+
"$ref": "#/$defs/decision_point_group"
4848

4949
}

data/schema/v1/Decision_Point_Value_Selection-1-0-1.schema.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"$schema": "https://json-schema.org/draft/2020-12/schema",
33
"$id": "https://certcc.github.io/SSVC/data/schema/v1/Decision_Point_Value_Selection-1-0-1.schema.json",
4-
"definitions": {
4+
"$defs": {
55
"id": {
66
"type": "string",
77
"description": "Identifier for a vulnerability could be CVE, CERT/CC VU#, OSV id, Bugtraq, GHSA etc.",
@@ -66,24 +66,24 @@
6666
},
6767
"properties": {
6868
"id": {
69-
"$ref": "#/definitions/id"
69+
"$ref": "#/$defs/id"
7070
},
7171
"role": {
72-
"$ref": "#/definitions/role"
72+
"$ref": "#/$defs/role"
7373
},
7474
"schemaVersion": {
75-
"$ref": "#/definitions/schemaVersion"
75+
"$ref": "#/$defs/schemaVersion"
7676
},
7777
"timestamp": {
78-
"$ref": "#/definitions/timestamp"
78+
"$ref": "#/$defs/timestamp"
7979
},
8080
"selections": {
8181
"description" : "An array of Decision Points and their Values that were down-selected or evaluated ",
8282
"title": "selections",
8383
"type": "array",
8484
"minItems": 1,
8585
"items": {
86-
"$ref": "#/definitions/SsvcdecisionpointselectionSchema"
86+
"$ref": "#/$defs/SsvcdecisionpointselectionSchema"
8787
}
8888
}
8989
},

0 commit comments

Comments
 (0)