feat: add category search contract

This commit is contained in:
2026-10-25 04:46:49 +01:00
parent 5f09ad23ee
commit 06192f4717
2 changed files with 24 additions and 0 deletions
+17
View File
@@ -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" }
}
}
}
+7
View File
@@ -0,0 +1,7 @@
[
{
"id": "123",
"name": "Synthetic Game",
"box_art_url": "https://static-cdn.jtvnw.net/ttv-boxart/123-52x72.jpg"
}
]