-
Notifications
You must be signed in to change notification settings - Fork 35
/
Copy patharticle.schema.json
172 lines (172 loc) · 7.78 KB
/
article.schema.json
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
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
{
"$anchor": "assessment-article",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"$patch": {
"source": {
"$ref": "article"
},
"with": {
"properties": {
"_assessment": {
"type": "object",
"title": "Assessment",
"default": {},
"properties": {
"_isEnabled": {
"type": "boolean",
"title": "Make this article an assessment",
"default": false
},
"_id": {
"type": "string",
"title": "Assessment ID",
"description": "Unique name for the assessment. This is required by other plugins such as the 'Assessment Results' component to identify the assessment and display its variables",
"default": ""
},
"_attempts": {
"type": "number",
"title": "Allowed attempts",
"description": "Controls the number of attempts the user is allowed to have on this assessment. Set to -1 (or 0) to allow infinite attempts",
"default": -1
},
"_isPercentageBased": {
"type": "boolean",
"title": "Set pass mark as percentage",
"description": "Determines whether the pass mark values should be treated as percentages (default) or as the raw score and correctness",
"default": true
},
"_scoreToPass": {
"type": "number",
"title": "Pass mark",
"description": "The minimum score required by the learner to pass the assessment or the minimum percentage score if percentage-based",
"default": 60
},
"_correctToPass": {
"type": "number",
"title": "Correct pass mark",
"description": "The minimum number of correct questions required by the learner to pass the assessment or the minimum percentage correct if percentage-based",
"default": 60
},
"_includeInTotalScore": {
"type": "boolean",
"title": "Include score in course total",
"description": "Determines if the score from this assessment should be sent to the LMS. The score sent is a percentage according to 'Assessment weight'",
"default": true
},
"_assessmentWeight": {
"type": "number",
"title": "Assessment weight",
"description": "If there are multiple assessments in the course, this value controls the proportion of the LMS score which is attributed to this assessment, i.e. 1 equals 100%, 0.5 is 50%, etc.",
"default": 1
},
"_suppressMarking": {
"type": "boolean",
"title": "Suppress marking until complete",
"description": "Determines whether question marking should be delayed until completion of the assessment or until all attempts have been exhausted",
"default": false
},
"_isResetOnRevisit": {
"type": "boolean",
"title": "Reset state on revisit",
"description": "Controls whether the assessment should be reset automatically (up to the number of available attempts) when a user revisits the page",
"default": false
},
"_allowResetIfPassed": {
"type": "boolean",
"title": "Allow retry once passed",
"description": "Controls whether the assessment may be reset after it has been passed (whilst there are attempts remaining)",
"default": false
},
"_scrollToOnReset": {
"type": "boolean",
"title": "Scroll to assessment article on reset",
"description": "Controls whether to scroll to the assessment after reset or to stay at the top of the assessment page",
"default": false
},
"_randomisation": {
"type": "object",
"title": "Randomised blocks",
"default": {},
"properties": {
"_isEnabled": {
"type": "boolean",
"title": "Enable",
"description": "If randomisation is enabled, a specified number of blocks will be displayed to the user in a random order",
"default": false
},
"_blockCount": {
"type": "number",
"title": "Block count",
"description": "The number of blocks to present to the learner. Set to -1 (or 0) to display all blocks",
"default": -1
}
}
},
"_banks": {
"type": "object",
"title": "Question banks",
"default": {},
"properties": {
"_isEnabled": {
"type": "boolean",
"title": "Enable",
"description": "Enables associating blocks of question components with a 'bank', allowing questions to be grouped then rendered via the 'Question counts' property",
"default": false
},
"_split": {
"type": "string",
"title": "Question counts",
"description": "This is a comma-separated list of numbers corresponding to the number of questions to be drawn from each question bank. The position of the number in the list corresponds to the 'Bank ID' assigned, e.g. \"3,2\" would display three questions from Bank 1 and two from Bank 2",
"default": ""
},
"_randomisation": {
"type": "boolean",
"title": "Randomise question banks",
"description": "Controls whether the questions will be displayed in a random order",
"default": false
}
}
},
"_questions": {
"type": "object",
"title": "Question overrides",
"default": {},
"properties": {
"_resetType": {
"type": "string",
"title": "Reset type",
"description": "Determines whether the question will register as completed when reset. When assigned a value of 'soft', the learner may continue to interact with it, but the complete attribute remains set to true. When assigned 'hard', complete is set to false, and the learner will be forced to complete it again if it is reset. For 'soft', when using trickle, please set the trickle Completion Attribute to `_isInteractionComplete'.",
"default": "hard",
"enum": [
"soft",
"hard"
],
"_backboneForms": "Select"
},
"_canShowFeedback": {
"type": "boolean",
"title": "Enable feedback",
"description": "Allows the user to view feedback on their answer",
"default": false
},
"_canShowMarking": {
"type": "boolean",
"title": "Enable marking",
"description": "Displays ticks and crosses on question completion",
"default": false
},
"_canShowModelAnswer": {
"type": "boolean",
"title": "Enable correct answer toggle",
"description": "Allows the user to view the 'model answer' should they answer the question incorrectly",
"default": false
}
}
}
}
}
}
}
}
}