mirror of https://github.com/zulip/zulip.git
openapi: Extract an Anchor schema.
It was previously duplicated in multiple places.
This commit is contained in:
parent
ab464e6728
commit
9c409a332a
|
@ -5685,13 +5685,7 @@ paths:
|
||||||
(that specific large value works around a bug in Zulip
|
(that specific large value works around a bug in Zulip
|
||||||
2.1.x and older in the `found_newest` return value).
|
2.1.x and older in the `found_newest` return value).
|
||||||
schema:
|
schema:
|
||||||
oneOf:
|
$ref: "#/components/schemas/Anchor"
|
||||||
- type: string
|
|
||||||
enum:
|
|
||||||
- newest
|
|
||||||
- oldest
|
|
||||||
- first_unread
|
|
||||||
- type: integer
|
|
||||||
example: 43
|
example: 43
|
||||||
- name: include_anchor
|
- name: include_anchor
|
||||||
in: query
|
in: query
|
||||||
|
@ -6447,13 +6441,7 @@ paths:
|
||||||
- `first_unread`: The oldest unread message matching the
|
- `first_unread`: The oldest unread message matching the
|
||||||
query, if any; otherwise, the most recent message.
|
query, if any; otherwise, the most recent message.
|
||||||
schema:
|
schema:
|
||||||
oneOf:
|
$ref: "#/components/schemas/Anchor"
|
||||||
- type: string
|
|
||||||
enum:
|
|
||||||
- newest
|
|
||||||
- oldest
|
|
||||||
- first_unread
|
|
||||||
- type: integer
|
|
||||||
example: 43
|
example: 43
|
||||||
required: true
|
required: true
|
||||||
- name: include_anchor
|
- name: include_anchor
|
||||||
|
@ -16967,6 +16955,14 @@ components:
|
||||||
description: |
|
description: |
|
||||||
The event's type, relevant both for client-side dispatch and server-side
|
The event's type, relevant both for client-side dispatch and server-side
|
||||||
filtering by event type in [POST /register](/api/register-queue).
|
filtering by event type in [POST /register](/api/register-queue).
|
||||||
|
Anchor:
|
||||||
|
oneOf:
|
||||||
|
- type: string
|
||||||
|
enum:
|
||||||
|
- newest
|
||||||
|
- oldest
|
||||||
|
- first_unread
|
||||||
|
- type: integer
|
||||||
Attachments:
|
Attachments:
|
||||||
type: object
|
type: object
|
||||||
description: |
|
description: |
|
||||||
|
|
Loading…
Reference in New Issue