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: content:
application/json: application/json:
schema: schema:
type: array oneOf:
- type: string
- type: integer
- type: array
items:
type: string
- type: array
items: items:
type: integer type: integer
minLength: 1
example: [9, 10] example: [9, 10]
required: true required: true
- $ref: "#/components/parameters/RequiredContent" - $ref: "#/components/parameters/RequiredContent"