From 81a8c15735a845e13ed1355756dc801d4e38ded4 Mon Sep 17 00:00:00 2001 From: Paarth Shah Date: Fri, 18 Aug 2023 00:42:21 -0700 Subject: [PATCH] Clarify that 'via' is required as per MSC1772. --- data/event-schemas/schema/m.space.child.yaml | 4 ++-- data/event-schemas/schema/m.space.parent.yaml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/data/event-schemas/schema/m.space.child.yaml b/data/event-schemas/schema/m.space.child.yaml index feef0adc..a2ff3763 100644 --- a/data/event-schemas/schema/m.space.child.yaml +++ b/data/event-schemas/schema/m.space.child.yaml @@ -9,8 +9,6 @@ properties: type: array description: |- A list of servers to try and join through. See also: [Routing](/appendices/#routing). - - When not present or invalid, the child room is not considered to be part of the space. items: type: string order: @@ -34,6 +32,8 @@ properties: Optional (default `false`) flag to denote whether the child is "suggested" or of interest to members of the space. This is primarily intended as a rendering hint for clients to display the room differently, such as eagerly rendering them in the room list. + required: + - via type: object state_key: description: The child room ID being described. diff --git a/data/event-schemas/schema/m.space.parent.yaml b/data/event-schemas/schema/m.space.parent.yaml index ced24d70..b1864f96 100644 --- a/data/event-schemas/schema/m.space.parent.yaml +++ b/data/event-schemas/schema/m.space.parent.yaml @@ -9,8 +9,6 @@ properties: type: array description: |- A list of servers to try and join through. See also: [Routing](/appendices/#routing). - - When not present or invalid, the room is not considered to be part of the parent space. items: type: string canonical: @@ -20,6 +18,8 @@ properties: When multiple `canonical` parents are found, the lowest parent when ordering by room ID lexicographically by Unicode code-points should be used. + required: + - via type: object state_key: description: The parent room ID.