Skip to content

Commit

Permalink
Did not add Git file
Browse files Browse the repository at this point in the history
  • Loading branch information
sei-vsarvepalli committed Jul 12, 2024
1 parent ebe04ff commit 63ff757
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 0 deletions.
48 changes: 48 additions & 0 deletions data/schema/v1/Decision_Point_Group-1-0-1.schema.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
{
"$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": {
"schemaVersion": {
"description": "Schema version used to represent Decision Point Group",
"type": "string",
"enum": ["1-0-1"]
},
"decision_point_group": {
"type": "object",
"additionalProperties": false,
"properties": {
"schemaVersion": {
"$ref": "#/definitions/schemaVersion"
},
"version": {
"type": "string",
"description": "Version (a semantic version string) that identifies this object"
},
"name": {
"type": "string",
"description": "A short label that captures the description of the Decision Point or the Group of Decision Points."
},
"description": {
"type": "string",
"description": "Description of the Decision Point or the Group of Decision Points."
},
"decision_points": {
"type": "array",
"minItems": 1,
"items": {
"$ref": "https://certcc.github.io/SSVC/data/schema/v1/Decision_Point-1-0-1.schema.json"
}
}
},
"required": [
"version",
"name",
"description",
"decision_points"
]
}
},
"$ref": "#/definitions/decision_point_group"

}
1 change: 1 addition & 0 deletions src/test/test_schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ def retrieve_local(uri):
mypath = os.path.dirname(__file__)
rpath = os.getcwd()
path = mypath + "/../.." + fileuri
print(path)
if os.path.exists(path):
fh = open(path)
schema = json.load(fh)
Expand Down

0 comments on commit 63ff757

Please sign in to comment.