forked from museumsvictoria/genera
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathschema.json
155 lines (153 loc) · 5.13 KB
/
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
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "Genera Data",
"description": "A data specification for Museum Victoria Genera system",
"definitions": {
"image": {
"type": "object",
"properties": {
"filename": { "description": "image filename" },
"credit": { "description": "image credit " },
"description": { "description": "image description" },
"licenseType": { "description": "image licence" },
"alternateText": { "description": "accessibility alt text" } }
}
},
"type": "object",
"properties": {
"data": {
"type": "array",
"title": "Speci Data",
"description": "Array of speci",
"items": {
"type": "object",
"properties": {
"identifier": {"description": "external identifier" },
"label": {"description": "Item name" },
"sublabel": {"description": "Item sublabel" },
"sublabelStyle": {"description": "normal” or “italic" },
"tertiaryLabel": {"description": "Item tertiarylabel" },
"tertiaryLabelStyle": { "enum": [ "normal", "italic", "" ], "description": "normal or italic" },
"searchText": {"description": "search text" },
"squareThumbnail": { "description": "thumbnail filename" },
"group": { "description": "group.label" },
"subgroup": { "description": "subgroup name" },
"subgroupID": { "description": "subgroup ID" },
"template": { "description": "template.templateName" },
"images": {
"type": "array",
"items": { "$ref": "#/definitions/image" }
},
"audio": {
"type": "array",
"items": {
"type": "object",
"properties": {
"filename": { "description": "audio filename" },
"credit": { "description": "audio credit" },
"description": { "description": "audio description " },
"licenseType": { "description": "audio license" },
"alternateText": { "description": "accessibility alt text" }
}
}
},
"details": {
"patternProperties": {
".*": {}
}
}
}
}
},
"groupList": {
"type": "array",
"title": "Group List",
"description": "An array of Group",
"minItems": 1,
"items": {
"type": "object",
"required": ["supergroupID", "label", "sublabel", "order", "groupID", "standardImage", "highlightedImage"],
"properties": {
"supergroupID": { "type": "string", "pattern": "^[0-9]+$" },
"label": { "type": "string" },
"subLabel": { "type": "string" },
"order": { "type": "string", "pattern": "^[0-9]+$" },
"groupID": { "type": "string", "pattern": "^[0-9]+$" },
"standardImage": { "type": "string" },
"highlightedImage": { "type": "string" }
}
},
"uniqueItems": true
},
"supergroupList": {
"type": "array",
"title": "Supergroup List",
"description": "An array of Supergroups",
"minItems": 1,
"items": {
"type": "object",
"required": ["supergroupID", "label", "order"],
"properties": {
"supergroupID": { "type": "string", "pattern": "^[0-9]+$" },
"label": { "type": "string" },
"order": { "type": "string", "pattern": "^[0-9]+$" }
}
},
"uniqueItems": true
},
"subgroupList": {
"type": "array",
"title": "Subgroup List",
"description": "An array of subgroups",
"minItems": 1,
"items": {
"type": "object",
"properties": {
"groupID": { "type": "string", "pattern": "^[0-9]+$" },
"label": { "type": "string" },
"subgroupID": { "type": "string", "pattern": "^[0-9]+$" },
"sublabel": { "type": "string" }
}
},
"uniqueItems": true
},
"templateList": {
"type": "array",
"title": "Template List",
"description": "An aray of templates used to control layout",
"minItems": 1,
"items": {
"type": "object",
"properties": {
"templateName": {},
"tabletTemplate": {},
"mobileTabs": {
"type": "array",
"items": {
"type": "object",
"properties": {
"tabName": {},
"tabLabel": {},
"tabIcon": {},
"tabTemplate": {}
}
}
}
}
}
},
"galleryImages": {
"type": "array",
"title": "Gallery Images",
"description": "An array of images used for the gallery feature",
"items": { "$ref": "#/definitions/image" }
},
"versionID": {
"type": "string",
"pattern": "^[0-9]+$",
"title": "Version ID",
"description": "Integer Version ID encoded as a string"
}
},
"required": ["supergroupList","groupList", "galleryImages", "versionID"]
}