-
-
Notifications
You must be signed in to change notification settings - Fork 36
Expand file tree
/
Copy pathLearningObjectives.js
More file actions
79 lines (77 loc) · 2.27 KB
/
LearningObjectives.js
File metadata and controls
79 lines (77 loc) · 2.27 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
// -*- coding: utf-8 -*-
// Generated by scripts/generate_from_specs.py
// LearningObjectives
export const SCHEMA = {
"$id": "/schemas/learning_objectives",
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"description": "Schema for Learning Objectives mapping",
"additionalProperties": false,
"definitions": {
"hex-uuid": {
"type": "string",
"pattern": "^[0-9a-f]{32}$",
"description": "A unique identifier in the form of the compact hex representations of a UUID v4 or v5"
},
"learning_objective_id": {
"$ref": "#/definitions/hex-uuid",
"description": "Unique identifier for the Learning Objective"
}
},
"properties": {
"learning_objectives": {
"type": "array",
"description": "A list of Learning Objectives available in the unit",
"minItems": 1,
"items": {
"type": "object",
"properties": {
"id": {
"$ref": "#/definitions/learning_objective_id"
},
"text": {
"type": "string",
"minLength": 1,
"pattern": "^\\s*\\S[\\s\\S]*$",
"description": "Human-readable text describing the Learning Objective"
},
"metadata": {
"type": "object",
"description": "Optional metadata associated with the Learning Objective"
}
},
"required": ["id", "text"]
}
},
"assessment_objectives": {
"type": "object",
"description": "Mapping of assessment question IDs to Learning Objective IDs",
"minProperties": 1,
"additionalProperties": false,
"patternProperties": {
"^[0-9a-f]{32}$": {
"type": "array",
"items": {
"$ref": "#/definitions/learning_objective_id"
}
}
}
},
"lesson_objectives": {
"type": "object",
"description": "Mapping of lesson IDs to Learning Objective IDs",
"minProperties": 1,
"additionalProperties": false,
"patternProperties": {
"^[0-9a-f]{32}$": {
"type": "array",
"items": {
"$ref": "#/definitions/learning_objective_id"
}
}
}
}
},
"required": ["learning_objectives", "assessment_objectives", "lesson_objectives"]
}
;