-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathproperties.schema
144 lines (144 loc) · 5.21 KB
/
properties.schema
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
{
"type": "object",
"$schema": "http://json-schema.org/draft-03/schema",
"id": "http://jsonschema.net",
"properties": {
"pluginLocations": {
"type": "object",
"properties": {
"course": {
"type": "object",
"properties": {
"_branching": {
"type": "object",
"legend": "Branching",
"properties": {
"_isEnabled": {
"type": "boolean",
"default": true,
"title": "Enable branching globally",
"inputType": "Checkbox"
}
}
}
}
},
"article": {
"type": "object",
"properties": {
"_branching": {
"type": "object",
"legend": "Branching",
"properties": {
"_isEnabled": {
"type": "boolean",
"default": false,
"title": "Enable branching within this article",
"inputType": "Checkbox"
},
"_start": {
"type": "string",
"default": "",
"title": "Start block id",
"inputType": "Text",
"help": "Leave blank to use the first block"
}
}
}
}
},
"block": {
"type": "object",
"properties": {
"_branching": {
"type": "object",
"legend": "Branching",
"properties": {
"_correct": {
"type": "string",
"default": "",
"title": "Correct target",
"inputType": "Text",
"help": "Next block to render if all questions in this block are answered correctly"
},
"_partlyCorrect": {
"type": "string",
"default": "",
"title": "Partly correct target",
"inputType": "Text",
"help": "Next block to render if all questions in this block are answered partly correctly"
},
"_incorrect": {
"type": "string",
"default": "",
"title": "Incorrect target",
"inputType": "Text",
"help": "Next block to render if all questions in this block are answered incorrectly"
},
"_hasAttemptBands": {
"type": "boolean",
"required": true,
"default": false,
"title": "Has attempt bands",
"inputType": "Checkbox",
"validators": [],
"help": "When selected, this block will branch according to correctness and attempt rather than just correctness."
},
"_useQuestionAttempts": {
"type": "boolean",
"required": true,
"default": false,
"title": "Use question attempts",
"inputType": "Checkbox",
"validators": [],
"help": "Controls whether this block will branch according previous completed attempts at this question"
},
"_attemptBands": {
"type": "array",
"required": true,
"title": "Attempt bands",
"items": {
"type": "object",
"required": true,
"properties": {
"_attempts": {
"type": "number",
"required": false,
"default": 1,
"title": "Minimum attempts",
"inputType": "Number",
"validators": ["number"],
"help": "Enter a value representing the attempts for the start of the range."
},
"_correct": {
"type": "string",
"default": "",
"title": "Correct target",
"inputType": "Text",
"help": "Next block to render if all questions in this block are answered correctly"
},
"_partlyCorrect": {
"type": "string",
"default": "",
"title": "Partly correct target",
"inputType": "Text",
"help": "Next block to render if all questions in this block are answered partly correctly"
},
"_incorrect": {
"type": "string",
"default": "",
"title": "Incorrect target",
"inputType": "Text",
"help": "Next block to render if all questions in this block are answered incorrectly"
}
}
}
}
}
}
}
}
}
}
}
}