mirror of https://github.com/zulip/zulip.git
openapi: Improve `/message` GET OpenAPI spec.
The `num_after` and `num_before` parameters should be 0 or greater.
This commit is contained in:
parent
bb405ebc3d
commit
4ca4d43b0c
|
@ -524,6 +524,7 @@ paths:
|
|||
The number of messages with IDs less than the anchor to retrieve.
|
||||
schema:
|
||||
type: integer
|
||||
minimum: 0
|
||||
example: 4
|
||||
required: true
|
||||
- name: num_after
|
||||
|
@ -532,6 +533,7 @@ paths:
|
|||
The number of messages with IDs greater than the anchor to retrieve.
|
||||
schema:
|
||||
type: integer
|
||||
minimum: 0
|
||||
example: 8
|
||||
required: true
|
||||
- name: narrow
|
||||
|
|
Loading…
Reference in New Issue