From 9895681e312b5650747b56d2b7b85e1fc8f3baf3 Mon Sep 17 00:00:00 2001 From: Brian Quinn Date: Fri, 17 Oct 2014 16:29:18 +0100 Subject: [PATCH] Update properties.schema --- properties.schema | 62 ++++++++++++++++++++++++++++++++++------------- 1 file changed, 45 insertions(+), 17 deletions(-) diff --git a/properties.schema b/properties.schema index 4e2a0ea..f2c84d6 100644 --- a/properties.schema +++ b/properties.schema @@ -7,87 +7,115 @@ "_attempts": { "type":"number", "required":true, - "default":1 + "default":1, + "minimum": 1, + "title": "Number of attempts" }, "_isRandom": { "type":"boolean", - "required":true + "required":true, + "default":false, + "title": "Random order" }, "_questionWeight": { "type":"number", - "required":false + "required":false, + "title": "Question weight" }, "_selectable": { "type":"number", - "required":true + "required":true, + "minimum": 1, + "title": "Selectable answers" }, "_buttons": { "type":"object", + "title": "Buttons", "properties":{ "hideCorrectAnswer": { - "type":"string" + "type":"string", + "title": "Hide correct answer button label" }, "reset": { - "type":"string" + "type":"string", + "title": "Reset button label" }, "showCorrectAnswer": { - "type":"string" + "type":"string", + "title": "Show correct answer button label" }, "submit": { - "type":"string" + "type":"string", + "title": "Submit button label" } } }, "_feedback": { "type":"object", "required":true, + "title": "Feedback text", "properties":{ "_incorrect": { "type":"object", "required":true, + "title": "Feedback for incorrect answers", "properties":{ "final": { - "type":"string" + "type":"string", + "required":true, + "minLength": 1, + "title": "Incorrect final answer" }, "notFinal": { - "type":"string" + "type":"string", + "title": "Incorrect non final answer" } } }, "_partlyCorrect": { "type":"object", "required":true, + "title": "Feedback when answer is partly correct", "properties":{ "final": { "type":"string", - "required":true + "required":true, + "minLength": 1, + "title": "Partially correct final answer" }, "notFinal": { - "type":"string" + "type":"string", + "title": "Partially correct non final answer" } } }, "correct": { "type":"string", - "required":true + "required":true, + "minLength": 1, + "title": "Feedback for correct answer" } } }, - "items": { + "_items": { "type":"array", "required":true, + "title": "Question answers", "items": { "type":"object", "required":true, "properties":{ - "shouldBeSelected": { + "_shouldBeSelected": { "type":"boolean", - "required":true + "required":true, + "title": "Correct answer" }, "text": { "type":"string", - "required":true + "required":true, + "minLength": 1, + "title": "Answer text" } } }