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: Use enum for the anchor parameter.

bjorn3ab464e67280a
diff --git a/zerver/openapi/zulip.yaml b/zerver/openapi/zulip.yaml
index ac5cc41db2f..be5eebc2953 100644
--- a/zerver/openapi/zulip.yaml
+++ b/zerver/openapi/zulip.yaml
@@ -5687,6 +5687,10 @@ paths:
schema:
oneOf:
- type: string
+ enum:
+ - newest
+ - oldest
+ - first_unread
- type: integer
example: 43
- name: include_anchor
@@ -6445,6 +6449,10 @@ paths:
schema:
oneOf:
- type: string
+ enum:
+ - newest
+ - oldest
+ - first_unread
- type: integer
example: 43
required: true