mirror of https://github.com/zulip/zulip.git
openapi: Fix ‘to’ parameter schema.
The previous schema incorrectly prohibited the string, integer, and string-array forms that we do in fact accept. Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
parent
a5a12398fe
commit
a1de8d95a8
|
@ -5332,9 +5332,16 @@ paths:
|
||||||
content:
|
content:
|
||||||
application/json:
|
application/json:
|
||||||
schema:
|
schema:
|
||||||
type: array
|
oneOf:
|
||||||
items:
|
- type: string
|
||||||
type: integer
|
- type: integer
|
||||||
|
- type: array
|
||||||
|
items:
|
||||||
|
type: string
|
||||||
|
- type: array
|
||||||
|
items:
|
||||||
|
type: integer
|
||||||
|
minLength: 1
|
||||||
example: [9, 10]
|
example: [9, 10]
|
||||||
required: true
|
required: true
|
||||||
- $ref: "#/components/parameters/RequiredContent"
|
- $ref: "#/components/parameters/RequiredContent"
|
||||||
|
|
Loading…
Reference in New Issue