mirror of
https://github.com/matrix-org/matrix-spec
synced 2026-03-11 22:14:10 +01:00
Mark required fields as required
This commit is contained in:
parent
212a4b5fce
commit
e854757c98
|
|
@ -57,6 +57,7 @@ paths:
|
||||||
schema:
|
schema:
|
||||||
type: object
|
type: object
|
||||||
description: A list of the rooms on the server.
|
description: A list of the rooms on the server.
|
||||||
|
required: ["chunk"]
|
||||||
properties:
|
properties:
|
||||||
chunk:
|
chunk:
|
||||||
title: "PublicRoomsChunks"
|
title: "PublicRoomsChunks"
|
||||||
|
|
@ -66,6 +67,7 @@ paths:
|
||||||
items:
|
items:
|
||||||
type: object
|
type: object
|
||||||
title: "PublicRoomsChunk"
|
title: "PublicRoomsChunk"
|
||||||
|
required: ["room_id"]
|
||||||
properties:
|
properties:
|
||||||
aliases:
|
aliases:
|
||||||
type: array
|
type: array
|
||||||
|
|
@ -187,7 +189,7 @@ paths:
|
||||||
type: string
|
type: string
|
||||||
description: |-
|
description: |-
|
||||||
A string to search for in the room metadata, e.g. name,
|
A string to search for in the room metadata, e.g. name,
|
||||||
topic, canonical alias etc.
|
topic, canonical alias etc. (Optional).
|
||||||
example: |-
|
example: |-
|
||||||
{"limit": 10, "filter": {"generic_search_term": "foo"}}
|
{"limit": 10, "filter": {"generic_search_term": "foo"}}
|
||||||
responses:
|
responses:
|
||||||
|
|
@ -196,6 +198,7 @@ paths:
|
||||||
schema:
|
schema:
|
||||||
type: object
|
type: object
|
||||||
description: A list of the rooms on the server.
|
description: A list of the rooms on the server.
|
||||||
|
required: ["chunk"]
|
||||||
properties:
|
properties:
|
||||||
chunk:
|
chunk:
|
||||||
title: "PublicRoomsChunks"
|
title: "PublicRoomsChunks"
|
||||||
|
|
@ -205,6 +208,7 @@ paths:
|
||||||
items:
|
items:
|
||||||
type: object
|
type: object
|
||||||
title: "PublicRoomsChunk"
|
title: "PublicRoomsChunk"
|
||||||
|
required: ["room_id"]
|
||||||
properties:
|
properties:
|
||||||
aliases:
|
aliases:
|
||||||
type: array
|
type: array
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue