From d94deb62969cf81e7af0f6e1cd433999347c782f Mon Sep 17 00:00:00 2001 From: Gergely Polonkai Date: Tue, 8 Mar 2016 15:51:09 +0100 Subject: [PATCH] Add event as a parent for all event types Signed-off-by: Gergely Polonkai --- event-schemas/schema/m.presence | 3 +++ event-schemas/schema/m.receipt | 3 +++ event-schemas/schema/m.tag | 3 +++ event-schemas/schema/m.typing | 3 +++ 4 files changed, 12 insertions(+) diff --git a/event-schemas/schema/m.presence b/event-schemas/schema/m.presence index 79852ac6..c8ed2291 100644 --- a/event-schemas/schema/m.presence +++ b/event-schemas/schema/m.presence @@ -2,6 +2,9 @@ "type": "object", "title": "Presence Event", "description": "Informs the client of a user's presence state change.", + "allOf": [{ + "$ref": "core-event-schema/event.yaml" + }], "properties": { "content": { "type": "object", diff --git a/event-schemas/schema/m.receipt b/event-schemas/schema/m.receipt index d0f79ac4..8594dd7c 100644 --- a/event-schemas/schema/m.receipt +++ b/event-schemas/schema/m.receipt @@ -2,6 +2,9 @@ "type": "object", "title": "Receipt Event", "description": "Informs the client of new receipts.", + "allOf": [{ + "$ref": "core-event-schema/event.yaml" + }], "properties": { "content": { "type": "object", diff --git a/event-schemas/schema/m.tag b/event-schemas/schema/m.tag index 4c5b4fa5..80d3f9dd 100644 --- a/event-schemas/schema/m.tag +++ b/event-schemas/schema/m.tag @@ -2,6 +2,9 @@ "type": "object", "title": "Tag Event", "description": "Informs the client of tags on a room.", + "allOf": [{ + "$ref": "core-event-schema/event.yaml" + }], "properties": { "type": { "type": "string", diff --git a/event-schemas/schema/m.typing b/event-schemas/schema/m.typing index b712f6ec..705b3b6c 100644 --- a/event-schemas/schema/m.typing +++ b/event-schemas/schema/m.typing @@ -2,6 +2,9 @@ "type": "object", "title": "Typing Event", "description": "Informs the client of the list of users currently typing.", + "allOf": [{ + "$ref": "core-event-schema/event.yaml" + }], "properties": { "content": { "type": "object",