feat: add category search contract
This commit is contained in:
@@ -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" }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
[
|
||||||
|
{
|
||||||
|
"id": "123",
|
||||||
|
"name": "Synthetic Game",
|
||||||
|
"box_art_url": "https://static-cdn.jtvnw.net/ttv-boxart/123-52x72.jpg"
|
||||||
|
}
|
||||||
|
]
|
||||||
Reference in New Issue
Block a user