From: Christian Weiske Date: Sun, 10 Nov 2019 10:58:31 +0000 (+0100) Subject: Add products to JSON schema X-Git-Url: https://git.cweiske.de/ouya-game-data.git/commitdiff_plain/c33b8022f0e4f3b531e6b8b622e631c6e08aed86 Add products to JSON schema --- diff --git a/schema.json b/schema.json index 8ce2e30..cc593e2 100644 --- a/schema.json +++ b/schema.json @@ -314,9 +314,57 @@ }, "products": { + "description": "Items that could be bought via the discover store", "type": "array", "items": { - "FIXME": "" + "type": "object", + "required": [ + "identifier", + "name", + "description", + "localPrice", + "originalPrice", + "currency" + ], + "additionalProperties": false, + "properties": { + + "promoted": { + "description": "If this product is the currently promoted/visible one", + "type": "boolean" + }, + + "identifier": { + "description": "Internal key (\"full_version\")", + "type": "string" + }, + + "name": { + "description": "Human readable name (\"Unlock full game\")", + "type": "string" + }, + + "description": { + "description": "Explanation of the features you will buy", + "type": "string" + }, + + "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"] + } + } } } }