Skip to content

Commit

Permalink
Mark required fields as required
Browse files Browse the repository at this point in the history
  • Loading branch information
erikjohnston committed Sep 29, 2016
1 parent 212a4b5 commit e0f329f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion api/client-server/list_public_rooms.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ paths:
schema:
type: object
description: A list of the rooms on the server.
required: ["chunk"]
properties:
chunk:
title: "PublicRoomsChunks"
Expand All @@ -66,6 +67,7 @@ paths:
items:
type: object
title: "PublicRoomsChunk"
required: ["room_id"]
properties:
aliases:
type: array
Expand Down Expand Up @@ -180,14 +182,15 @@ paths:
filter:
type: object
title: "Filter"
required: []
description: |-
Optional filtering of the returned rooms.
properties:
generic_search_term:
type: string
description: |-
A string to search for in the room metadata, e.g. name,
topic, canonical alias etc.
topic, canonical alias etc. (Optional).
example: |-
{"limit": 10, "filter": {"generic_search_term": "foo"}}
responses:
Expand All @@ -196,6 +199,7 @@ paths:
schema:
type: object
description: A list of the rooms on the server.
required: ["chunk"]
properties:
chunk:
title: "PublicRoomsChunks"
Expand All @@ -205,6 +209,7 @@ paths:
items:
type: object
title: "PublicRoomsChunk"
required: ["room_id"]
properties:
aliases:
type: array
Expand Down

0 comments on commit e0f329f

Please sign in to comment.