openapi: Improve `/message` GET OpenAPI spec.

The `num_after` and `num_before` parameters should be 0 or greater.
This commit is contained in:
orientor 2020-07-10 03:20:41 +05:30 committed by Tim Abbott
parent bb405ebc3d
commit 4ca4d43b0c
1 changed files with 2 additions and 0 deletions

View File

@ -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