Move schema property examples into "examples" section
[ouya-game-data.git] / schema.json
index cc593e21be9f248be6abddc7883b35b8585b009c..7ea380a1058c8621a34592a19a3e2293495c189c 100644 (file)
@@ -1,6 +1,6 @@
 {
     "$schema": "http://json-schema.org/draft-07/schema#",
 {
     "$schema": "http://json-schema.org/draft-07/schema#",
-    "$id": "http://example.com/ouya-game.schema.json",
+    "$id": "http://cweiske.de/ouya-game.schema.json",
     "title": "OUYA game metadata",
     "description": "Game data importable in OUYA API servers.",
     "type": "object",
     "title": "OUYA game metadata",
     "description": "Game data importable in OUYA API servers.",
     "type": "object",
     "additionalProperties": false,
     "properties": {
         "packageName": {
     "additionalProperties": false,
     "properties": {
         "packageName": {
-            "description": "Java package name (\"com.vendor.gamename\")",
-            "type": "string"
+            "description": "Java package names",
+            "type": "string",
+            "examples": [
+                "com.vendor.gamename"
+            ]
         },
 
         "title": {
         },
 
         "title": {
                 "properties": {
 
                     "name": {
                 "properties": {
 
                     "name": {
-                        "description": "Human readable version number ('1.6')",
-                        "type": "string"
+                        "description": "Human readable version number",
+                        "type": "string",
+                        "examples": [
+                            "1.6"
+                        ]
                     },
 
                     "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"
+                        "type": ["string", "null"]
                     },
 
                     "uuid": {
                     },
 
                     "uuid": {
                     "date": {
                         "description": "When the version has been released",
                         "type": "string",
                     "date": {
                         "description": "When the version has been released",
                         "type": "string",
-                        "format": "date"
+                        "format": ["date", "datetime"]
                     },
 
                     "latest": {
                     },
 
                     "latest": {
                 },
 
                 "average": {
                 },
 
                 "average": {
-                    "description": "Average rating for this game (0-5)",
+                    "description": "Average rating for this game",
                     "type": "number",
                     "type": "number",
-                    "minimum": 0
+                    "minimum": 0,
+                    "maximum": 5
                 },
 
                 "count": {
                 },
 
                 "count": {
                     },
 
                     "identifier": {
                     },
 
                     "identifier": {
-                        "description": "Internal key (\"full_version\")",
-                        "type": "string"
+                        "description": "Internal key",
+                        "type": "string",
+                        "examples": [
+                            "full_version"
+                        ]
                     },
 
                     "name": {
                     },
 
                     "name": {
-                        "description": "Human readable name (\"Unlock full game\")",
-                        "type": "string"
+                        "description": "Human readable name",
+                        "type": "string",
+                        "examples": [
+                            "Unlock full game"
+                        ]
                     },
 
                     "description": {
                     },
 
                     "description": {