Apply suggestions from code review

Signed-off-by: Logan Devine <logan@zirco.dev>

Co-authored-by: Kévin Commaille <76261501+zecakeh@users.noreply.github.com>
This commit is contained in:
Logan Devine 2026-05-01 10:42:42 -07:00 committed by Logan Devine
parent f9fcab129d
commit e3155ec85b
No known key found for this signature in database
GPG key ID: 6C154E1DBCF538F4

View file

@ -35,6 +35,8 @@ paths:
example: "@alice:example.com" example: "@alice:example.com"
schema: schema:
type: string type: string
format: mx-user-id
pattern: "^@"
- in: query - in: query
name: from name: from
required: false required: false
@ -62,12 +64,14 @@ paths:
membership of type `join`. membership of type `join`.
items: items:
type: string type: string
format: mx-room-id
pattern: "^!"
example: "!OGEhHVWSdvArJzumhm:matrix.org" example: "!OGEhHVWSdvArJzumhm:matrix.org"
count: count:
type: integer type: integer
description: |- description: |-
The number of such rooms. This is the total count even if the response is The number of such rooms. This is the total count even if the response is
batched and joined doesn't include all rooms. This MAY be inaccurate batched and `joined` doesn't include all rooms. This MAY be inaccurate
if the server is unable to calculate the exact number of rooms. if the server is unable to calculate the exact number of rooms.
example: 1 example: 1
next_batch: next_batch: