From 48043c649845c6b0769ca45c194057ae28ad1aa5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A9vin=20Commaille?= Date: Tue, 5 Mar 2024 16:44:57 +0100 Subject: [PATCH 1/2] Clarify that extra fields of space hierarchy children are not required MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit There is no `children_state` field, the `room_type` is only set for spaces and the description of `allowed_room_ids` says that the field can be omitted. Signed-off-by: Kévin Commaille --- data/api/server-server/space_hierarchy.yaml | 4 ---- 1 file changed, 4 deletions(-) diff --git a/data/api/server-server/space_hierarchy.yaml b/data/api/server-server/space_hierarchy.yaml index aa98158fc..5592f6440 100644 --- a/data/api/server-server/space_hierarchy.yaml +++ b/data/api/server-server/space_hierarchy.yaml @@ -119,10 +119,6 @@ paths: description: |- If the room is a [restricted room](#restricted-rooms), these are the room IDs which are specified by the join rules. Empty or omitted otherwise. - required: - - room_type - - allowed_room_ids - - children_state inaccessible_children: type: array items: From 3fc48444dcb737c40694959bfbedcc33e21240da Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A9vin=20Commaille?= Date: Tue, 5 Mar 2024 16:49:03 +0100 Subject: [PATCH 2/2] Add changelog MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Kévin Commaille --- changelogs/server_server/newsfragments/1741.clarification | 1 + 1 file changed, 1 insertion(+) create mode 100644 changelogs/server_server/newsfragments/1741.clarification diff --git a/changelogs/server_server/newsfragments/1741.clarification b/changelogs/server_server/newsfragments/1741.clarification new file mode 100644 index 000000000..ec31cac1e --- /dev/null +++ b/changelogs/server_server/newsfragments/1741.clarification @@ -0,0 +1 @@ +Clarify that the `children_state`, `room_type` and `allowed_room_ids` properties in the items of the `children` array of the response of the `GET /hierarchy` endpoint are not required. \ No newline at end of file