From 06192f47174a0784474a57c205b58c26908df7cb Mon Sep 17 00:00:00 2001 From: ReaperOfVeriod Date: Sun, 25 Oct 2026 04:46:49 +0100 Subject: [PATCH] feat: add category search contract --- contracts/v1/game-search-response.json | 17 +++++++++++++++++ fixtures/v1/game-search.response.json | 7 +++++++ 2 files changed, 24 insertions(+) create mode 100644 contracts/v1/game-search-response.json create mode 100644 fixtures/v1/game-search.response.json 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" + } +]