From 8dd669e259372f508c3cfe661af01e4cf878767f Mon Sep 17 00:00:00 2001 From: Dan Gray Date: Fri, 10 Oct 2014 11:31:23 +0100 Subject: [PATCH] Add schema file --- properties.schema | 91 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 91 insertions(+) create mode 100644 properties.schema diff --git a/properties.schema b/properties.schema new file mode 100644 index 00000000..d715d9f5 --- /dev/null +++ b/properties.schema @@ -0,0 +1,91 @@ +{ + "type":"object", + "$schema": "http://json-schema.org/draft-04/schema", + "id": "http://jsonschema.net", + "required":false, + "properties":{ + "pluginLocations": { + "type":"object", + "required":true, + "properties":{ + "config": { + "type":"object", + "properties":{ + "_spoor": { + "type":"object", + "required":false, + "properties":{ + "_isEnabled": { + "type":"boolean", + "required":true, + "title":"Enabled" + }, + "_tracking": { + "type":"object", + "required":false, + "title": "Tracking", + "properties":{ + "_requireAssessmentPassed": { + "type":"boolean", + "required":false, + "title":"Assessment pass required" + }, + "_requireCourseCompleted": { + "type":"boolean", + "required":false, + "title":"Course completion required" + }, + "_shouldSubmitScore": { + "type":"boolean", + "required":false, + "title":"Submit score" + } + } + }, + "_reporting": { + "type":"object", + "required":false, + "title": "Reporting", + "properties":{ + "_comment": { + "type":"string", + "required":false, + "title": "Comment" + }, + "_onTrackingCriteriaMet": { + "type":"string", + "required":false, + "title":"Tracking success status", + "enum": ["completed", "passed", "failed", "incomplete"] + }, + "_onAssessmentFailure": { + "type":"string", + "required":false, + "title":"Assessment failure status", + "enum": ["completed", "passed", "failed", "incomplete"] + } + } + } + } + } + } + }, + "course": { + "type":"object" + }, + "contentobject": { + "type":"object" + }, + "article": { + "type":"object" + }, + "block": { + "type":"object" + }, + "component": { + "type":"object" + } + } + } + } +}