diff --git a/contracts/v1/chat-emotes-response.json b/contracts/v1/chat-emotes-response.json new file mode 100644 index 0000000..476cfe8 --- /dev/null +++ b/contracts/v1/chat-emotes-response.json @@ -0,0 +1,15 @@ +{ + "$schema": "https://json-schema.org/draft/2020-12/schema", + "type": "array", + "maxItems": 50, + "items": { + "type": "object", + "additionalProperties": false, + "required": ["name", "url", "provider"], + "properties": { + "name": { "type": "string", "minLength": 1 }, + "url": { "type": "string", "format": "uri", "pattern": "^https://" }, + "provider": { "type": "string", "enum": ["twitch", "7tv"] } + } + } +} diff --git a/fixtures/v1/chat-emotes.response.json b/fixtures/v1/chat-emotes.response.json new file mode 100644 index 0000000..5a2875d --- /dev/null +++ b/fixtures/v1/chat-emotes.response.json @@ -0,0 +1,12 @@ +[ + { + "name": "Kappa", + "url": "https://static-cdn.jtvnw.net/emoticons/v2/25/static/dark/2.0", + "provider": "twitch" + }, + { + "name": "catJAM", + "url": "https://cdn.7tv.app/emote/60ae8f6f625f5a2a4d4e2b6f/2x.webp", + "provider": "7tv" + } +]