From 2f824df8dd72454909087ccfafcb6bf9c778d1e0 Mon Sep 17 00:00:00 2001 From: Travis Ralston Date: Fri, 31 Aug 2018 09:43:29 -0600 Subject: [PATCH] Define the real event types on the invite_state --- api/client-server/sync.yaml | 25 +++++++++++++++++++++++-- 1 file changed, 23 insertions(+), 2 deletions(-) diff --git a/api/client-server/sync.yaml b/api/client-server/sync.yaml index 0f096e13..9422abb4 100644 --- a/api/client-server/sync.yaml +++ b/api/client-server/sync.yaml @@ -202,8 +202,29 @@ paths: the room then the current state will be given as a delta against the archived ``state`` not the ``invite_state``. - allOf: - - $ref: "definitions/state_event_batch.yaml" + properties: + events: + description: The StrippedState events that form the invite state. + items: + description: 'A stripped down state event, with only the ``type``, ``state_key`` and ``content`` keys.' + properties: + content: + description: The ``content`` for the event. + title: EventContent + type: object + state_key: + description: The ``state_key`` for the event. + type: string + type: + description: The ``type`` for the event. + type: string + required: + - type + - state_key + - content + title: StrippedState + type: object + type: array leave: title: Left rooms type: object