diff --git a/contracts/v1/game-search-response.json b/contracts/v1/game-search-response.json new file mode 100644 index 0000000..b9766ae --- /dev/null +++ b/contracts/v1/game-search-response.json @@ -0,0 +1,17 @@ +{ + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://trixie.reaperofveriod.nl/contracts/v1/game-search-response.json", + "title": "Twitch category search response", + "type": "array", + "maxItems": 25, + "items": { + "type": "object", + "additionalProperties": false, + "required": ["id", "name", "box_art_url"], + "properties": { + "id": { "type": "string", "minLength": 1 }, + "name": { "type": "string", "minLength": 1 }, + "box_art_url": { "type": "string", "format": "uri" } + } + } +} diff --git a/fixtures/v1/game-search.response.json b/fixtures/v1/game-search.response.json new file mode 100644 index 0000000..94cb3fa --- /dev/null +++ b/fixtures/v1/game-search.response.json @@ -0,0 +1,7 @@ +[ + { + "id": "123", + "name": "Synthetic Game", + "box_art_url": "https://static-cdn.jtvnw.net/ttv-boxart/123-52x72.jpg" + } +]