Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

openapi: Improve `/message` GET OpenAPI spec.

orientor4ca4d43b0cad
diff --git a/zerver/openapi/zulip.yaml b/zerver/openapi/zulip.yaml
index 2f3d778f237..50984d69c9b 100644
--- a/zerver/openapi/zulip.yaml
+++ b/zerver/openapi/zulip.yaml
@@ -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