Make more fields nullable
authorChristian Weiske <cweiske@cweiske.de>
Tue, 12 Nov 2019 06:40:29 +0000 (07:40 +0100)
committerChristian Weiske <cweiske@cweiske.de>
Tue, 12 Nov 2019 06:40:29 +0000 (07:40 +0100)
ouya-game.schema.json

index 2a69ff5a5bee57e5eb9f409c78b461708bbede43..2e33ede80f379f0a5df3dd504ac1aef6d614a430 100644 (file)
 
                 "supportEmail": {
                     "description": "E-Mail address for support questions",
 
                 "supportEmail": {
                     "description": "E-Mail address for support questions",
-                    "type": "string",
+                    "type": ["string", "null"],
                     "format": "email",
                     "default": null
                 },
 
                 "supportPhone": {
                     "description": "Telephone number",
                     "format": "email",
                     "default": null
                 },
 
                 "supportPhone": {
                     "description": "Telephone number",
-                    "type": "string",
+                    "type": ["string", "null"],
                     "default": null
                 },
 
                     "default": null
                 },
 
 
         "website": {
             "description": "Game website",
 
         "website": {
             "description": "Game website",
-            "type": "string",
+            "type": ["string", "null"],
             "format": "url"
         },
 
         "firstPublishedAt": {
             "description": "When the game has first been published to the world",
             "format": "url"
         },
 
         "firstPublishedAt": {
             "description": "When the game has first been published to the world",
-            "type": "string",
-            "format": "date|date-time"
+            "type": ["string", "null"],
+            "format": "date|date-time",
+            "default": null
         },
 
         "inAppPurchases": {
             "description": "If you can buy things in the game",
         },
 
         "inAppPurchases": {
             "description": "If you can buy things in the game",
-            "type": "boolean"
+            "type": "boolean",
+            "default": false
         },
 
         "overview": {
             "description": "FIXME",
         },
 
         "overview": {
             "description": "FIXME",
-            "type": "string"
+            "type": ["string", "null"],
+            "default": null
         },
 
         "premium": {
             "description": "FIXME",
         },
 
         "premium": {
             "description": "FIXME",
-            "type": "boolean"
+            "type": "boolean",
+            "default": false
         },
 
         "rating": {
         },
 
         "rating": {
                 "likeCount": {
                     "description": "Number of likes this game has",
                     "type": "number",
                 "likeCount": {
                     "description": "Number of likes this game has",
                     "type": "number",
-                    "minimum": 0
+                    "minimum": 0,
+                    "default": 0
                 },
 
                 "average": {
                     "description": "Average rating for this game",
                     "type": "number",
                     "minimum": 0,
                 },
 
                 "average": {
                     "description": "Average rating for this game",
                     "type": "number",
                     "minimum": 0,
-                    "maximum": 5
+                    "maximum": 5,
+                    "default": 0
                 },
 
                 "count": {
                     "description": "Number of ratings",
                     "type": "number",
                 },
 
                 "count": {
                     "description": "Number of ratings",
                     "type": "number",
-                    "minimum": 0
+                    "minimum": 0,
+                    "default": 0
                 }
             }
         },
                 }
             }
         },