api_docs: Remove unnecessary quotation marks in openapi arrays.

Removes various instances of quotation marks that are not needed,
specifically looking at instances of arrays, e.g. `- "`, in the
OpenAPI documentation.
This commit is contained in:
Lauryn Menard
2022-01-28 00:07:17 +01:00
committed by Tim Abbott
parent 38e044173d
commit 44c86d823a

View File

@@ -2216,14 +2216,14 @@ paths:
[status-messages]: /help/format-your-message-using-markdown#status-messages [status-messages]: /help/format-your-message-using-markdown#status-messages
required: required:
- "type" - type
- "id" - id
- "user_id" - user_id
- "message_id" - message_id
- "message_ids" - message_ids
- "flags" - flags
- "edit_timestamp" - edit_timestamp
- "rendering_only" - rendering_only
example: example:
{ {
"type": "update_message", "type": "update_message",
@@ -3894,11 +3894,11 @@ paths:
allOf: allOf:
- $ref: "#/components/schemas/EventTypeSchema" - $ref: "#/components/schemas/EventTypeSchema"
- enum: - enum:
- "drafts" - drafts
op: op:
type: string type: string
enum: enum:
- "add" - add
drafts: drafts:
type: array type: array
description: | description: |
@@ -3932,11 +3932,11 @@ paths:
allOf: allOf:
- $ref: "#/components/schemas/EventTypeSchema" - $ref: "#/components/schemas/EventTypeSchema"
- enum: - enum:
- "drafts" - drafts
op: op:
type: string type: string
enum: enum:
- "update" - update
draft: draft:
$ref: "#/components/schemas/Draft" $ref: "#/components/schemas/Draft"
example: example:
@@ -3964,11 +3964,11 @@ paths:
allOf: allOf:
- $ref: "#/components/schemas/EventTypeSchema" - $ref: "#/components/schemas/EventTypeSchema"
- enum: - enum:
- "drafts" - drafts
op: op:
type: string type: string
enum: enum:
- "remove" - remove
draft_id: draft_id:
type: integer type: integer
description: | description: |
@@ -7966,15 +7966,15 @@ paths:
property: property:
type: string type: string
enum: enum:
- "color" - color
- "is_muted" - is_muted
- "in_home_view" - in_home_view
- "pin_to_top" - pin_to_top
- "desktop_notifications" - desktop_notifications
- "audible_notifications" - audible_notifications
- "push_notifications" - push_notifications
- "email_notifications" - email_notifications
- "wildcard_mentions_notify" - wildcard_mentions_notify
description: | description: |
One of the stream properties described below: One of the stream properties described below:
@@ -14815,8 +14815,8 @@ components:
or "private" (for PMs and private group messages). or "private" (for PMs and private group messages).
enum: enum:
- "" - ""
- "stream" - stream
- "private" - private
to: to:
type: array type: array
description: | description: |