Skip to content

Fix the type of children in the /hierarchy S-S API.#3660

Merged
turt2live merged 2 commits intomainfrom
clokep/spaces-fixes
Jan 19, 2022
Merged

Fix the type of children in the /hierarchy S-S API.#3660
turt2live merged 2 commits intomainfrom
clokep/spaces-fixes

Conversation

@clokep
Copy link
Copy Markdown
Member

@clokep clokep commented Jan 19, 2022

This seems to have been slightly missed in #3610, the type of the children field for the federation /hierarchy API is an array of objects, not a single object.

Preview: https://pr3660--matrix-org-previews.netlify.app

items:
items:
allOf:
- $ref: "../client-server/definitions/public_rooms_chunk.yaml"
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is pretty odd how both the room and [children] end up being of type PublicRoomsChunk, but actually each have some extra fields which is non-obvious at first glance.

@clokep clokep requested a review from a team January 19, 2022 19:04
Copy link
Copy Markdown
Member

@turt2live turt2live left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@turt2live turt2live merged commit fff5f87 into main Jan 19, 2022
@turt2live turt2live deleted the clokep/spaces-fixes branch January 19, 2022 20:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants