git.cweiske.de
/
ouya-game-data.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Better JSON schema validation error messages
[ouya-game-data.git]
/
ouya-game.schema.json
diff --git
a/ouya-game.schema.json
b/ouya-game.schema.json
index 2e33ede80f379f0a5df3dd504ac1aef6d614a430..fcd566d79ece7b7056541d45400ea788c5e77319 100644
(file)
--- a/
ouya-game.schema.json
+++ b/
ouya-game.schema.json
@@
-102,7
+102,7
@@
"versionCode": {
"description": "APK-internal version code. Run \"aapt dump badging file.apk\", field \"versionCode\"",
"versionCode": {
"description": "APK-internal version code. Run \"aapt dump badging file.apk\", field \"versionCode\"",
- "type": ["
string
", "null"]
+ "type": ["
number
", "null"]
},
"uuid": {
},
"uuid": {
@@
-135,7
+135,8
@@
"md5sum": {
"description": "MD5 hash of the .apk file contents",
"md5sum": {
"description": "MD5 hash of the .apk file contents",
- "type": "string"
+ "type": ["string", "null"],
+ "default": null
},
"publicSize": {
},
"publicSize": {
@@
-173,8
+174,9
@@
"video": {
"description": "Video for the store details page. Vimeo and Youtube URLs supported",
"video": {
"description": "Video for the store details page. Vimeo and Youtube URLs supported",
- "type": "string",
- "format": "url"
+ "type": ["string", "null"],
+ "format": "url",
+ "default": null
},
"screenshots": {
},
"screenshots": {
@@
-230,7
+232,8
@@
"uuid": {
"description": "Unique ID for the developer",
"uuid": {
"description": "Unique ID for the developer",
- "type": "string"
+ "type": ["string", "null"],
+ "default": null
},
"name": {
},
"name": {
@@
-369,7
+372,8
@@
"description": {
"description": "Explanation of the features you will buy",
"description": {
"description": "Explanation of the features you will buy",
- "type": "string"
+ "type": ["string", "null"],
+ "default": null
},
"localPrice": {
},
"localPrice": {