-
Notifications
You must be signed in to change notification settings - Fork 22
/
Copy pathscorm.profile.attempt.state.schema.json
54 lines (54 loc) · 2.28 KB
/
scorm.profile.attempt.state.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
{
"id": "https://w3id.org/xapi/scorm/attempt-state/scorm.profile.attempt.state.schema",
"description": "State ID: https://w3id.org/xapi/scorm/attempt-state. See: https://github.com/adlnet/xAPI-SCORM-Profile/blob/master/xapi-scorm-profile.md#scorm-activity-attempt-state",
"type": "object",
"additionalProperties": false,
"properties": {
"comments_from_lms": {
"type": "array",
"items": {
"type": "object",
"additionalProperties": false,
"properties": {
"comment": { "type": "string" },
"location": { "type": "string" },
"timestamp": { "type": "string", "format": "date-time" }
}
}
},
"credit": { "enum": [ "credit", "no-credit" ] },
"mode": { "enum" : [ "browse", "normal", "review" ] },
"location": { "type": "string" },
"preferences": {
"type": "object",
"additionalProperties": false,
"properties": {
"audio_level": {
"type": "number",
"minimum": 0
},
"language": { "type": "string", "pattern": "^[a-z]{2,3}(?:-[A-Z]{2,3}(?:-[a-zA-Z]{4})?)?$" },
"delivery_speed": {
"type": "number",
"minimum": 0
},
"audio_captioning": { "enum": [ -1, 0, 1 ] }
}
},
"total_time": { "type": "string", "pattern": "^(-)?P(?:(-?[0-9,.]*)Y)?(?:(-?[0-9,.]*)M)?(?:(-?[0-9,.]*)W)?(?:(-?[0-9,.]*)D)?(?:T(?:(-?[0-9,.]*)H)?(?:(-?[0-9,.]*)M)?(?:(-?[0-9,.]*)S)?)?$"},
"adl_data": {
"type": "array",
"items": {
"required": [ "activityId", "agent", "stateId" ],
"type": "object",
"additionalProperties": false,
"properties": {
"activityId": { "type": "string", "format": "uri" },
"agent": { "type": "object" },
"stateId": { "type": "string" },
"registration": { "type": "string", "pattern": "[a-f0-9]{8}-[a-f0-9]{4}-4[a-f0-9]{3}-[89aAbB][a-f0-9]{3}-[a-f0-9]{12}" }
}
}
}
}
}