diff --git a/data/schema/v1/Decision_Point_Group-1-0-1.schema.json b/data/schema/v1/Decision_Point_Group-1-0-1.schema.json new file mode 100644 index 00000000..185460ed --- /dev/null +++ b/data/schema/v1/Decision_Point_Group-1-0-1.schema.json @@ -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" + +} diff --git a/src/test/test_schema.py b/src/test/test_schema.py index fac0d96d..ade11eaf 100644 --- a/src/test/test_schema.py +++ b/src/test/test_schema.py @@ -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)