-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathouya-game.schema.json
497 lines (443 loc) · 15.7 KB
/
ouya-game.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
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
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "http://cweiske.de/ouya-game.schema.json",
"title": "OUYA game metadata",
"description": "Game data importable in OUYA API servers.",
"type": "object",
"required": [
"packageName",
"title",
"releases",
"discover",
"media",
"developer"
],
"additionalProperties": false,
"properties": {
"packageName": {
"description": "Java package names",
"type": "string",
"examples": [
"com.vendor.gamename"
]
},
"title": {
"description": "Game name",
"type": "string"
},
"description": {
"description": "Text describing the game. Newlines (CRLF) allowed",
"type": "string"
},
"blockedInWebText": {
"description": "Text describing why the game data are not visible in the web",
"type": "string"
},
"players": {
"description": "How many players can play this game at the same time?",
"type": "array",
"items": {
"type": "number",
"minimum": 1
}
},
"genres": {
"description": "Categories",
"type": "array",
"items": {
"type": "string",
"uniqueItems": true,
"enum": [
"Adventure",
"App",
"Arcade/Pinball",
"Card/Casino",
"Dual Stick",
"Entertainment",
"Exclusive",
"Fight!",
"FPS/Shooter",
"Kids List",
"Meditative",
"Multiplayer",
"Music",
"Platformer",
"Puzzle/Trivia",
"Racing",
"Retro",
"Role-Playing",
"Short on Time?",
"Sim/Strategy",
"Sports",
"Utility",
"Video",
"VIP Room",
"Emulator",
"2019 GameJam",
"2020 GameJam",
"2020 Winter GameJam",
"2021 Anniversary GameJam",
"2021 Winter GameJam",
"2022 Winter GameJam",
"2023 Anniversary GameJam",
"2024 Anniversary GameJam",
"2025 Winter GameJam",
"Open Source",
"Repackaged",
"Tutorials",
"Unlocked"
]
}
},
"languages": {
"description": "Language of text/audio content (ISO 639-1)",
"type": "array",
"items": {
"type": "string",
"uniqueItems": true,
"enum": [
"cs",
"da",
"de",
"el",
"en",
"eo",
"es",
"fi",
"fr",
"hu",
"it",
"ja",
"ko",
"nl",
"no",
"pl",
"pt",
"ru",
"sr",
"sv",
"th",
"tk",
"uk",
"zh"
]
}
},
"releases": {
"type": "array",
"items": {
"type": "object",
"required": [
"name",
"versionCode",
"uuid",
"date",
"url",
"size",
"md5sum"
],
"additionalProperties": false,
"properties": {
"broken": {
"description": "If the download URL does not work anymore",
"type": "boolean",
"default": false
},
"name": {
"description": "Human readable version number",
"type": "string",
"examples": [
"1.6"
]
},
"versionCode": {
"description": "APK-internal version code. Run \"aapt dump badging file.apk\", field \"versionCode\"",
"type": ["number", "null"]
},
"uuid": {
"description": "Unique ID for the release. Use uuid-gen to get one",
"type": "string"
},
"date": {
"description": "When the version has been released",
"type": "string",
"format": "date|datetime"
},
"url": {
"description": ".apk download link",
"type": "string",
"format": "url"
},
"size": {
"description": "File size in bytes",
"type": "number",
"minimum": 1
},
"md5sum": {
"description": "MD5 hash of the .apk file contents",
"type": ["string", "null"],
"default": null
},
"publicSize": {
"description": "FIXME",
"type": "number"
},
"nativeSize": {
"description": "FIXME",
"type": "number"
},
"cert_fingerprint": {
"description": "A SHA256 format fingerprint of the signing certificate that was used for this APK. Allows for authorization tracking.",
"type": "string",
"minLength": 95,
"maxLength": 95,
"pattern": "^([0-9A-F]{2}:){31}[0-9A-F]{2}$",
"examples": [
"EF:D5:B9:C0:58:C1:21:ED:97:F3:FD:89:21:12:B6:00:F6:D1:9B:C2:9B:EE:F7:47:40:0C:E0:BB:0D:25:1C:40"
]
},
"cert_subject": {
"description": "The subject name of the signing certificate",
"type": "string",
"examples": [
"C = US, O = Android, CN = Android Debug",
"C = US, ST = CA, L = San Francisco, O = SEGA of America, OU = Mobile PD, CN = alben pedroso"
]
},
"stability": {
"description": "What quality of a release this is",
"default": "stability",
"type": "string",
"enum": [
"alpha",
"beta",
"stable"
]
}
}
}
},
"discover": {
"description": "Main game image. Used in the OUYA discover store. Size 732x412",
"type": "string",
"format": "url"
},
"media": {
"description": "Images and videos for the details and apps pages. Can be in any order. The first video is used for the app's 'video' field, all images for app's 'screenshots'. Images are sized 1280x720",
"type": "array",
"items": {
"type": "object",
"required": [
"type",
"url"
],
"additionalProperties": false,
"properties": {
"type": {
"description": "Medium type: image or video",
"type": "string",
"enum": [
"image",
"video"
]
},
"url": {
"description": "Image URL or video URL. Vimeo and Youtube URLs supported",
"type": "string",
"format": "url"
},
"thumb": {
"description": "Small preview image. Size should be 852x479.",
"type": "string",
"format": "url"
}
}
}
},
"developer": {
"type": "object",
"required": [
"name"
],
"additionalProperties": false,
"properties": {
"uuid": {
"description": "Unique ID for the developer",
"type": ["string", "null"],
"default": null
},
"name": {
"description": "Developer (company or person) name",
"type": "string"
},
"supportEmail": {
"description": "E-Mail address for support questions",
"type": ["string", "null"],
"format": "email",
"default": null
},
"alternateEmail": {
"description": "Alternate E-Mail address for support questions",
"type": ["string", "null"],
"format": "email",
"default": null
},
"website": {
"description": "Developer website",
"type": ["string", "null"],
"format": "url",
"default": null
},
"supportPhone": {
"description": "Telephone number",
"type": ["string", "null"],
"default": null
},
"founder": {
"description": "If the developer was an OUYA founder",
"type": "boolean",
"default": false
}
}
},
"contentRating": {
"description": "Which audience is this game for?",
"type": "string",
"enum": [
"Everyone",
"9+",
"12+",
"17+"
]
},
"website": {
"description": "Game website",
"type": ["string", "null"],
"format": "url"
},
"firstPublishedAt": {
"description": "When the game has first been published to the world",
"type": ["string", "null"],
"format": "date|date-time",
"default": null
},
"inAppPurchases": {
"description": "If you can buy things in the game",
"type": "boolean",
"default": false
},
"overview": {
"description": "FIXME",
"type": ["string", "null"],
"default": null
},
"premium": {
"description": "The game has no demo but has to be bought before playing it",
"type": "boolean",
"default": false
},
"rating": {
"type": "object",
"additionalProperties": false,
"properties": {
"likeCount": {
"description": "Number of likes this game has",
"type": "number",
"minimum": 0,
"default": 0
},
"average": {
"description": "Average rating for this game",
"type": "number",
"minimum": 0,
"maximum": 5,
"default": 0
},
"count": {
"description": "Number of ratings",
"type": "number",
"minimum": 0,
"default": 0
}
}
},
"products": {
"description": "Items that could be bought via the discover store",
"type": "array",
"items": {
"type": "object",
"required": [
"identifier",
"name",
"localPrice",
"originalPrice",
"currency"
],
"additionalProperties": false,
"properties": {
"promoted": {
"description": "If this product is visible in the ouya discover store",
"type": "boolean"
},
"type": {
"description": "Kind of product",
"type": "string",
"enum": ["entitlement", "consumable", "subscription"],
"default": "entitlement"
},
"identifier": {
"description": "Internal key",
"type": "string",
"examples": [
"full_version"
]
},
"name": {
"description": "Human readable name",
"type": "string",
"examples": [
"Unlock full game"
]
},
"description": {
"description": "Explanation of the features you will buy",
"type": ["string", "null"],
"default": null
},
"localPrice": {
"description": "Current price (maybe discounted)",
"type": "number"
},
"originalPrice": {
"description": "Previous price",
"type": "number"
},
"currency": {
"description": "Three-letter currency code, depending on the player that was logged in",
"type": "string",
"enum": ["EUR", "USD"]
}
}
}
},
"relationships": {
"type": "object",
"description": "Links to other OUYA applications",
"additionalProperties": false,
"properties": {
"unlocked": {
"type": "string",
"description": "Package name of unlocked application (full version if this is the demo)"
},
"original": {
"type": "string",
"description": "Package name of original application (demo version if this is the unlocked version)"
}
}
},
"notes": {
"description": "Technical notes on the game, e.g. how to get it working or which controllers work.",
"type": "string"
}
}
}