Skip to content

Commit

Permalink
SSVC JSON Schema 2020-12 (#654)
Browse files Browse the repository at this point in the history
- change `definitions`to `$defs`

Co-authored-by: Allen D. Householder <[email protected]>
  • Loading branch information
tschmidtb51 and ahouseholder authored Dec 3, 2024
1 parent 0f6dd40 commit 7a6b03a
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 13 deletions.
8 changes: 4 additions & 4 deletions data/schema/v1/Decision_Point-1-0-1.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"title": "Decision Point schema definition",
"$id": "https://certcc.github.io/SSVC/data/schema/v1/Decision_Point-1-0-1.schema.json",
"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.",
"definitions": {
"$defs": {
"schemaVersion": {
"description": "Schema version used to represent this Decision Point",
"type": "string",
Expand Down Expand Up @@ -37,7 +37,7 @@
"additionalProperties": false,
"properties": {
"schemaVersion": {
"$ref": "#/definitions/schemaVersion"
"$ref": "#/$defs/schemaVersion"
},
"namespace": {
"type": "string",
Expand Down Expand Up @@ -65,7 +65,7 @@
"type": "array",
"minItems": 1,
"items": {
"$ref": "#/definitions/decision_point_value"
"$ref": "#/$defs/decision_point_value"
}
}
},
Expand All @@ -80,5 +80,5 @@
]
}
},
"$ref": "#/definitions/decision_point"
"$ref": "#/$defs/decision_point"
}
6 changes: 3 additions & 3 deletions data/schema/v1/Decision_Point_Group-1-0-1.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "Decision Points Group schema definition",
"$id": "https://certcc.github.io/SSVC/data/schema/v1/Decision_Point_Group-1-0-1.schema.json",
"definitions": {
"$defs": {
"schemaVersion": {
"description": "Schema version used to represent Decision Point Group",
"type": "string",
Expand All @@ -13,7 +13,7 @@
"additionalProperties": false,
"properties": {
"schemaVersion": {
"$ref": "#/definitions/schemaVersion"
"$ref": "#/$defs/schemaVersion"
},
"version": {
"type": "string",
Expand Down Expand Up @@ -44,6 +44,6 @@
]
}
},
"$ref": "#/definitions/decision_point_group"
"$ref": "#/$defs/decision_point_group"

}
12 changes: 6 additions & 6 deletions data/schema/v1/Decision_Point_Value_Selection-1-0-1.schema.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://certcc.github.io/SSVC/data/schema/v1/Decision_Point_Value_Selection-1-0-1.schema.json",
"definitions": {
"$defs": {
"id": {
"type": "string",
"description": "Identifier for a vulnerability could be CVE, CERT/CC VU#, OSV id, Bugtraq, GHSA etc.",
Expand Down Expand Up @@ -66,24 +66,24 @@
},
"properties": {
"id": {
"$ref": "#/definitions/id"
"$ref": "#/$defs/id"
},
"role": {
"$ref": "#/definitions/role"
"$ref": "#/$defs/role"
},
"schemaVersion": {
"$ref": "#/definitions/schemaVersion"
"$ref": "#/$defs/schemaVersion"
},
"timestamp": {
"$ref": "#/definitions/timestamp"
"$ref": "#/$defs/timestamp"
},
"selections": {
"description" : "An array of Decision Points and their Values that were down-selected or evaluated ",
"title": "selections",
"type": "array",
"minItems": 1,
"items": {
"$ref": "#/definitions/SsvcdecisionpointselectionSchema"
"$ref": "#/$defs/SsvcdecisionpointselectionSchema"
}
}
},
Expand Down

0 comments on commit 7a6b03a

Please sign in to comment.