From 687c6b7cc6de0830c6ac113f4a470eb57d0bde16 Mon Sep 17 00:00:00 2001 From: ReaperOfVeriod Date: Sun, 25 Oct 2026 05:24:56 +0100 Subject: [PATCH] add collaborator contract --- contracts/v1/collaborators-response.json | 15 +++++++++++++++ fixtures/v1/collaborators.response.json | 8 ++++++++ 2 files changed, 23 insertions(+) create mode 100644 contracts/v1/collaborators-response.json create mode 100644 fixtures/v1/collaborators.response.json diff --git a/contracts/v1/collaborators-response.json b/contracts/v1/collaborators-response.json new file mode 100644 index 0000000..5aaecfd --- /dev/null +++ b/contracts/v1/collaborators-response.json @@ -0,0 +1,15 @@ +{ + "$schema": "https://json-schema.org/draft/2020-12/schema", + "type": "array", + "items": { + "type": "object", + "additionalProperties": false, + "required": ["twitch_user_id", "display_name", "favorite", "last_invited_at"], + "properties": { + "twitch_user_id": { "type": "string" }, + "display_name": { "type": "string" }, + "favorite": { "type": "boolean" }, + "last_invited_at": { "type": ["string", "null"] } + } + } +} diff --git a/fixtures/v1/collaborators.response.json b/fixtures/v1/collaborators.response.json new file mode 100644 index 0000000..c6d51ce --- /dev/null +++ b/fixtures/v1/collaborators.response.json @@ -0,0 +1,8 @@ +[ + { + "twitch_user_id": "123456", + "display_name": "ExampleStreamer", + "favorite": true, + "last_invited_at": "2026-10-25T12:00:00Z" + } +]