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:
Anders Kaseorg 2022-09-12 23:39:41 -07:00 committed by Tim Abbott
parent a5a12398fe
commit a1de8d95a8
1 changed files with 10 additions and 3 deletions

View File

@ -5332,9 +5332,16 @@ paths:
content:
application/json:
schema:
type: array
items:
type: integer
oneOf:
- type: string
- type: integer
- type: array
items:
type: string
- type: array
items:
type: integer
minLength: 1
example: [9, 10]
required: true
- $ref: "#/components/parameters/RequiredContent"