diff --git a/contracts/v1/collaboration-session-response.json b/contracts/v1/collaboration-session-response.json new file mode 100644 index 0000000..ab80da5 --- /dev/null +++ b/contracts/v1/collaboration-session-response.json @@ -0,0 +1,23 @@ +{ + "$schema": "https://json-schema.org/draft/2020-12/schema", + "type": ["object", "null"], + "additionalProperties": false, + "required": ["id", "guests"], + "properties": { + "id": { "type": "string" }, + "guests": { + "type": "array", + "items": { + "type": "object", + "additionalProperties": false, + "required": ["user_id"], + "properties": { + "user_id": { "type": "string" }, + "user_display_name": { "type": ["string", "null"] }, + "slot_id": { "type": ["string", "null"] }, + "is_live": { "type": ["boolean", "null"] } + } + } + } + } +} diff --git a/fixtures/v1/collaboration-session.response.json b/fixtures/v1/collaboration-session.response.json new file mode 100644 index 0000000..2c6d83c --- /dev/null +++ b/fixtures/v1/collaboration-session.response.json @@ -0,0 +1,4 @@ +{ + "id": "guest-star-session-1", + "guests": [] +}