mirror of https://github.com/zulip/zulip.git
api: Fix OpenAPI type declarations for events_register.
A few fields that are actually arrays were incorrectly declared as strings.
This commit is contained in:
parent
2183a74040
commit
866b3566d4
|
@ -1751,7 +1751,7 @@ paths:
|
||||||
your client code. For most applications, one is only interested in
|
your client code. For most applications, one is only interested in
|
||||||
messages, so one specifies: `event_types=['message']`"
|
messages, so one specifies: `event_types=['message']`"
|
||||||
schema:
|
schema:
|
||||||
type: string
|
type: array
|
||||||
example: event_types=['message']
|
example: event_types=['message']
|
||||||
- name: all_public_streams
|
- name: all_public_streams
|
||||||
in: query
|
in: query
|
||||||
|
@ -1776,7 +1776,7 @@ paths:
|
||||||
`fetch_event_types` is not provided, `event_types` is used and if
|
`fetch_event_types` is not provided, `event_types` is used and if
|
||||||
`event_types` is not provided, this argument defaults to `None`.
|
`event_types` is not provided, this argument defaults to `None`.
|
||||||
schema:
|
schema:
|
||||||
type: string
|
type: array
|
||||||
example: event_types=['message']
|
example: event_types=['message']
|
||||||
- name: narrow
|
- name: narrow
|
||||||
in: query
|
in: query
|
||||||
|
@ -1786,7 +1786,7 @@ paths:
|
||||||
`narrow=['stream', 'Denmark']`. Another example is
|
`narrow=['stream', 'Denmark']`. Another example is
|
||||||
`narrow=['is', 'private']` for private messages.
|
`narrow=['is', 'private']` for private messages.
|
||||||
schema:
|
schema:
|
||||||
type: string
|
type: array
|
||||||
default: narrow=[]
|
default: narrow=[]
|
||||||
example: narrow=['stream', 'Denmark']
|
example: narrow=['stream', 'Denmark']
|
||||||
security:
|
security:
|
||||||
|
|
Loading…
Reference in New Issue