-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathIdeoxanCourseMetadata.schema.json
More file actions
287 lines (287 loc) · 11.3 KB
/
IdeoxanCourseMetadata.schema.json
File metadata and controls
287 lines (287 loc) · 11.3 KB
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
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
{
"default": {},
"description": "(Draft) v1: The Ideoxan Course Metadata specification covers the general datatype used by the Ideoxan website and editor. This metadata structure is universal to all courses and encompasses basic information about these courses. This includes course names, descriptions, and associated languages.",
"examples": [
{
"name": "The Name of the Course",
"abstract": "A short blurb on what the course is about!",
"long": "A really... really... really long description. Like really long. This should talk about the course in more depth. HTML tags are valid but try and limit it to just <b>bold</b>, <em>italics</em>, <u>underline</u> or breaks.",
"tags": [
"some language",
"another language",
"maybe a topic?",
"language #3"
],
"path": {
"hasPath": false,
"name": null,
"icon": null
},
"images": {
"banner": "/static/img/htmlbanner.webp"
},
"chapters": [
{
"name": "A Chapter's Name",
"lessons": [
{
"name": "A Lesson's Name"
}
]
}
]
}
],
"required": [
"name",
"abstract",
"long",
"tags",
"path",
"images",
"chapters"
],
"title": "The Ideoxan Course Metadata Schema",
"properties": {
"name": {
"default": "",
"description": "This is the name of the course. Typically, it relates directly to the course content.",
"examples": [
"The Name of the Course"
],
"title": "The Course Name",
"type": "string"
},
"abstract": {
"default": "",
"description": "A short blurb on what the course is about!",
"maxLength": 100,
"title": "The Course Abstract",
"type": "string"
},
"long": {
"default": "",
"description": "A longer description on the contents of the course. We suggest that you make this as long as humanly possible.",
"examples": [
"A really... really... really long description. Like really long. This should talk about the course in more depth. HTML tags are valid but try and limit it to just <b>bold</b>, <em>italics</em>, <u>underline</u> or breaks."
],
"title": "The Course's long description"
},
"tags": {
"default": [],
"description": "An explanation about the purpose of this instance.",
"examples": [
[
"some language",
"another language"
]
],
"maxItems": 5,
"minItems": 2,
"title": "The Content Tags for the Course",
"type": "array",
"additionalItems": true,
"items": {
"$id": "#/properties/tags/items",
"anyOf": [
{
"default": "",
"description": "This is a valid tag that labels the course based on the content held within it. This tag must be a valid string. It may have an associated icon if it is a language.",
"examples": [
"some language",
"another language"
],
"title": "A valid tag",
"type": "string"
}
]
}
},
"path": {
"default": {},
"description": "Metadata on the assoicated pathway for the course",
"examples": [
{
"hasPath": false,
"name": null,
"icon": null
}
],
"required": [
"hasPath",
"name",
"icon"
],
"title": "Course Pathway Metadata",
"type": "object",
"properties": {
"hasPath": {
"default": false,
"description": "If true, the course has an associated pathway. A valid MDI icon and a pathway name must be included. If false, there is no pathway associated. ",
"examples": [
true,
false
],
"title": "Pathway Toggle",
"type": "boolean"
},
"name": {
"default": null,
"description": "The Name of the Pathway associated",
"examples": [
null,
"Fundamentals of Web Design"
],
"title": "Pathway Name",
"type": [
"null",
"string"
]
},
"icon": {
"default": null,
"description": "A valid MDI icon for the associated pathway",
"examples": [
null,
"language-javascript"
],
"title": "Pathway Icon",
"type": [
"null",
"string"
]
}
},
"additionalProperties": true
},
"images": {
"default": {},
"description": "A group of paths leading to relevant course images for display on the website",
"examples": [
{
"banner": "/static/img/htmlbanner.webp"
}
],
"required": [
"banner"
],
"title": "Course Display Images",
"type": "object",
"properties": {
"banner": {
"default": "",
"description": "A valid path string that contains an image file (preferably one of the WEBP format) that is used for display on the website",
"examples": [
"/static/img/htmlbanner.webp"
],
"title": "Course display image banner",
"type": "string"
}
},
"additionalProperties": true
},
"chapters": {
"default": [],
"description": "A list of chapters included in the course.",
"examples": [
[
{
"name": "A Chapter's Name",
"lessons": [
{
"name": "A Lesson's Name"
}
]
}
]
],
"minItems": 1,
"title": "The Course Chapters",
"type": "array",
"additionalItems": true,
"items": {
"$id": "#/properties/chapters/items",
"anyOf": [
{
"default": {},
"description": "A chapter included in a course",
"examples": [
{
"name": "A Chapter's Name",
"lessons": [
{
"name": "A Lesson's Name"
}
]
}
],
"required": [
"name",
"lessons"
],
"title": "A Course Chapter",
"type": "object",
"properties": {
"name": {
"default": "",
"description": "The name of the chapter included in the course",
"examples": [
"A Chapter's Name"
],
"title": "Chapter Name",
"type": "string"
},
"lessons": {
"default": [],
"description": "A list of lessons included in the chapter",
"examples": [
[
{
"name": "A Lesson's Name"
}
]
],
"title": "The Chapter Lessons",
"type": "array",
"additionalItems": true,
"items": {
"$id": "#/properties/chapters/items/anyOf/0/properties/lessons/items",
"anyOf": [
{
"default": {},
"description": "A lesson included in a chapter in a course",
"examples": [
{
"name": "A Lesson's Name"
}
],
"required": [
"name"
],
"title": "A Chapter Lesson",
"type": "object",
"properties": {
"name": {
"default": "",
"description": "The name of the lesson included in the chapter included in the course",
"examples": [
"A Lesson's Name"
],
"title": "Lesson Name",
"type": "string"
}
},
"additionalProperties": true
}
]
}
}
},
"additionalProperties": true
}
]
}
}
},
"additionalProperties": true
}