-
Notifications
You must be signed in to change notification settings - Fork 2
/
locatorSchema.json
106 lines (104 loc) · 2.7 KB
/
locatorSchema.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
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "urn:org.librarysimplified.bookmarks:locator:1.0",
"title": "Simplified Bookmark Locator",
"description": "A bookmark locator",
"type": "object",
"oneOf": [
{
"type": "object",
"properties": {
"@type": {
"description": "The type of locator",
"type": "string",
"pattern": "LocatorHrefProgression"
},
"href": {
"description": "The unique identifier for a chapter (hpChapterHref)",
"type": "string"
},
"progressWithinChapter": {
"description": "The progress within a chapter (hpChapterProgression)",
"type": "number",
"minimum": 0.0,
"maximum": 1.0
}
},
"required": [
"href",
"progressWithinChapter",
"@type"
]
},
{
"type": "object",
"properties": {
"@type": {
"description": "The type of locator",
"type": "string",
"pattern": "LocatorLegacyCFI"
},
"idref": {
"description": "The unique identifier for a chapter (lcIdRef)",
"type": "string"
},
"contentCFI": {
"description": "The content fragment identifier (lcContentCFI)",
"type": "string"
},
"progressWithinChapter": {
"description": "The progress within a chapter (lcChapterProgression)",
"type": "number",
"minimum": 0.0,
"maximum": 1.0
}
},
"required": [
"@type"
]
},
{
"type": "object",
"properties": {
"@type": {
"description": "The type of locator",
"type": "string",
"pattern": "LocatorAudioBookTime"
},
"chapter": {
"description": "The number of the chapter (abtChapter)",
"type": "number"
},
"part": {
"description": "The number of the part where the chapter belongs to (abtPart)",
"type": "number"
},
"time": {
"description": "The offset of the locator (abtTime)",
"type": "number"
},
"title": {
"description": "The title of the chapter (abtTitle)",
"type": "string"
},
"audiobookID": {
"description": "The unique identifier of the audiobook (abtAudiobookID)",
"type": "string"
},
"duration": {
"description": "The duration of the chapter (abtDuration)",
"type": "number"
},
},
"required": [
"@type",
"chapter",
"part",
"time",
"title",
"audiobookID",
"duration"
]
}
]
}