Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 2 commits into from
Jan 19, 2022

Conversation

clokep
Copy link
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
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
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