Make sure examples types match schema in definitions (#1563)
* Make sure examples types match schema in definitions Signed-off-by: Kévin Commaille <zecakeh@tedomum.fr> * Add changelogs Signed-off-by: Kévin Commaille <zecakeh@tedomum.fr> * Add double quotes around URL Signed-off-by: Kévin Commaille <zecakeh@tedomum.fr> --------- Signed-off-by: Kévin Commaille <zecakeh@tedomum.fr>
This commit is contained in:
parent
6521411547
commit
bed9223610
13 changed files with 17 additions and 15 deletions
|
@ -84,7 +84,7 @@ paths:
|
|||
- in: query
|
||||
name: limit
|
||||
description: "The maximum number of events to return. Default: 10."
|
||||
example: "3"
|
||||
example: 3
|
||||
schema:
|
||||
type: integer
|
||||
- in: query
|
||||
|
|
|
@ -44,7 +44,7 @@ paths:
|
|||
name: timeout
|
||||
description: The maximum time in milliseconds to wait for an event.
|
||||
required: false
|
||||
example: "35000"
|
||||
example: 35000
|
||||
schema:
|
||||
type: integer
|
||||
responses:
|
||||
|
@ -105,7 +105,7 @@ paths:
|
|||
name: limit
|
||||
description: The maximum number of messages to return for each room.
|
||||
required: false
|
||||
example: "2"
|
||||
example: 2
|
||||
schema:
|
||||
type: integer
|
||||
- in: query
|
||||
|
@ -116,7 +116,7 @@ paths:
|
|||
included. If set to `true` then rooms that the user has left are
|
||||
included as well. By default this is `false`.
|
||||
required: false
|
||||
example: "true"
|
||||
example: true
|
||||
schema:
|
||||
type: boolean
|
||||
responses:
|
||||
|
|
|
@ -49,14 +49,13 @@ paths:
|
|||
name: timeout
|
||||
description: The maximum time in milliseconds to wait for an event.
|
||||
required: false
|
||||
example: "35000"
|
||||
example: 35000
|
||||
schema:
|
||||
type: integer
|
||||
- in: query
|
||||
name: room_id
|
||||
description: The room ID for which events should be returned.
|
||||
example:
|
||||
- "!somewhere:over.the.rainbow"
|
||||
example: "!somewhere:over.the.rainbow"
|
||||
schema:
|
||||
type: string
|
||||
responses:
|
||||
|
|
|
@ -543,7 +543,7 @@ paths:
|
|||
required: true
|
||||
description: |
|
||||
The kind of rule
|
||||
example: cake
|
||||
example: content
|
||||
schema:
|
||||
type: string
|
||||
enum:
|
||||
|
|
|
@ -84,7 +84,7 @@ paths:
|
|||
changed since the point indicated by `since` will be returned.
|
||||
|
||||
By default, this is `false`.
|
||||
example: "false"
|
||||
example: false
|
||||
schema:
|
||||
type: boolean
|
||||
- in: query
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue