mirror of https://github.com/zulip/zulip.git
prettier: Disable bracketSpacing.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
parent
facd860a6c
commit
06691e1e45
|
@ -0,0 +1,3 @@
|
||||||
|
module.exports = {
|
||||||
|
bracketSpacing: false,
|
||||||
|
};
|
|
@ -33,8 +33,8 @@ test1:
|
||||||
{
|
{
|
||||||
"top_array":
|
"top_array":
|
||||||
[
|
[
|
||||||
{ "obj": { "str3": "test" } },
|
{"obj": {"str3": "test"}},
|
||||||
[{ "str1": "success", "str2": "success" }],
|
[{"str1": "success", "str2": "success"}],
|
||||||
],
|
],
|
||||||
}
|
}
|
||||||
test2:
|
test2:
|
||||||
|
@ -73,8 +73,8 @@ test2:
|
||||||
{
|
{
|
||||||
"top_array":
|
"top_array":
|
||||||
[
|
[
|
||||||
{ "obj": { "str3": "test", "str4": "extraneous" } },
|
{"obj": {"str3": "test", "str4": "extraneous"}},
|
||||||
[{ "str1": "success", "str2": "success" }],
|
[{"str1": "success", "str2": "success"}],
|
||||||
],
|
],
|
||||||
}
|
}
|
||||||
test3:
|
test3:
|
||||||
|
@ -109,7 +109,7 @@ test3:
|
||||||
{
|
{
|
||||||
"top_array":
|
"top_array":
|
||||||
[
|
[
|
||||||
{ "obj": { "str3": "test" } },
|
{"obj": {"str3": "test"}},
|
||||||
[{ "str1": "success", "str2": "success" }],
|
[{"str1": "success", "str2": "success"}],
|
||||||
],
|
],
|
||||||
}
|
}
|
||||||
|
|
|
@ -274,7 +274,7 @@ paths:
|
||||||
type: integer
|
type: integer
|
||||||
description: |
|
description: |
|
||||||
The ID of the given stream.
|
The ID of the given stream.
|
||||||
- example: { "msg": "", "result": "success", "stream_id": 15 }
|
- example: {"msg": "", "result": "success", "stream_id": 15}
|
||||||
"400":
|
"400":
|
||||||
description: Bad request.
|
description: Bad request.
|
||||||
content:
|
content:
|
||||||
|
@ -441,8 +441,8 @@ paths:
|
||||||
"create_time": 1588145417000,
|
"create_time": 1588145417000,
|
||||||
"messages":
|
"messages":
|
||||||
[
|
[
|
||||||
{ "id": 102, "date_sent": 1588145424000 },
|
{"id": 102, "date_sent": 1588145424000},
|
||||||
{ "id": 103, "date_sent": 1588145448000 },
|
{"id": 103, "date_sent": 1588145448000},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
@ -540,7 +540,7 @@ paths:
|
||||||
items:
|
items:
|
||||||
type: object
|
type: object
|
||||||
default: []
|
default: []
|
||||||
example: [{ "operand": "Denmark", "operator": "stream" }]
|
example: [{"operand": "Denmark", "operator": "stream"}]
|
||||||
- $ref: "#/components/parameters/ClientGravatar"
|
- $ref: "#/components/parameters/ClientGravatar"
|
||||||
- name: apply_markdown
|
- name: apply_markdown
|
||||||
in: query
|
in: query
|
||||||
|
@ -771,7 +771,7 @@ paths:
|
||||||
be sent. Note that scheduled messages ("Send later") is a beta API and
|
be sent. Note that scheduled messages ("Send later") is a beta API and
|
||||||
may change before it's a finished feature.
|
may change before it's a finished feature.
|
||||||
example: "2020-06-24 11:19:54.337533+00:00"
|
example: "2020-06-24 11:19:54.337533+00:00"
|
||||||
- example: { "msg": "", "id": 42, "result": "success" }
|
- example: {"msg": "", "id": 42, "result": "success"}
|
||||||
"400":
|
"400":
|
||||||
description: Bad request.
|
description: Bad request.
|
||||||
content:
|
content:
|
||||||
|
@ -952,11 +952,7 @@ paths:
|
||||||
description: |
|
description: |
|
||||||
An array with the IDs of the modified messages.
|
An array with the IDs of the modified messages.
|
||||||
- example:
|
- example:
|
||||||
{
|
{"msg": "", "messages": [4, 18, 15], "result": "success"}
|
||||||
"msg": "",
|
|
||||||
"messages": [4, 18, 15],
|
|
||||||
"result": "success",
|
|
||||||
}
|
|
||||||
/messages/render:
|
/messages/render:
|
||||||
post:
|
post:
|
||||||
operationId: render_message
|
operationId: render_message
|
||||||
|
@ -1092,7 +1088,7 @@ paths:
|
||||||
type: array
|
type: array
|
||||||
items:
|
items:
|
||||||
type: object
|
type: object
|
||||||
example: [{ "operator": "has", "operand": "link" }]
|
example: [{"operator": "has", "operand": "link"}]
|
||||||
required: true
|
required: true
|
||||||
responses:
|
responses:
|
||||||
"200":
|
"200":
|
||||||
|
@ -1438,21 +1434,21 @@ paths:
|
||||||
"is_guest": false,
|
"is_guest": false,
|
||||||
"profile_data":
|
"profile_data":
|
||||||
{
|
{
|
||||||
"4": { "value": "vim" },
|
"4": {"value": "vim"},
|
||||||
"2":
|
"2":
|
||||||
{
|
{
|
||||||
"value": "I am:\n* The prince of Denmark\n* Nephew to the usurping Claudius",
|
"value": "I am:\n* The prince of Denmark\n* Nephew to the usurping Claudius",
|
||||||
"rendered_value": "<p>I am:</p>\n<ul>\n<li>The prince of Denmark</li>\n<li>Nephew to the usurping Claudius</li>\n</ul>",
|
"rendered_value": "<p>I am:</p>\n<ul>\n<li>The prince of Denmark</li>\n<li>Nephew to the usurping Claudius</li>\n</ul>",
|
||||||
},
|
},
|
||||||
"5": { "value": "1900-1-1" },
|
"5": {"value": "1900-1-1"},
|
||||||
"7": { "value": "[11]" },
|
"7": {"value": "[11]"},
|
||||||
"6": { "value": "https://blog.zulig.org" },
|
"6": {"value": "https://blog.zulig.org"},
|
||||||
"1":
|
"1":
|
||||||
{
|
{
|
||||||
"value": "+0-11-23-456-7890",
|
"value": "+0-11-23-456-7890",
|
||||||
"rendered_value": "<p>+0-11-23-456-7890</p>",
|
"rendered_value": "<p>+0-11-23-456-7890</p>",
|
||||||
},
|
},
|
||||||
"8": { "value": "zulipbot" },
|
"8": {"value": "zulipbot"},
|
||||||
"3":
|
"3":
|
||||||
{
|
{
|
||||||
"rendered_value": "<p>Dark chocolate</p>",
|
"rendered_value": "<p>Dark chocolate</p>",
|
||||||
|
@ -1562,7 +1558,7 @@ paths:
|
||||||
schema:
|
schema:
|
||||||
allOf:
|
allOf:
|
||||||
- $ref: "#/components/schemas/JsonSuccess"
|
- $ref: "#/components/schemas/JsonSuccess"
|
||||||
- example: { "msg": "", "result": "success" }
|
- example: {"msg": "", "result": "success"}
|
||||||
|
|
||||||
/users/{email}/presence:
|
/users/{email}/presence:
|
||||||
get:
|
get:
|
||||||
|
@ -1636,11 +1632,11 @@ paths:
|
||||||
"presence":
|
"presence":
|
||||||
{
|
{
|
||||||
"website":
|
"website":
|
||||||
{ "timestamp": 1532697622, "status": "active" },
|
{"timestamp": 1532697622, "status": "active"},
|
||||||
"ZulipMobile":
|
"ZulipMobile":
|
||||||
{ "timestamp": 1522687421, "status": "active" },
|
{"timestamp": 1522687421, "status": "active"},
|
||||||
"aggregated":
|
"aggregated":
|
||||||
{ "timestamp": 1532697622, "status": "active" },
|
{"timestamp": 1532697622, "status": "active"},
|
||||||
},
|
},
|
||||||
"result": "success",
|
"result": "success",
|
||||||
"msg": "",
|
"msg": "",
|
||||||
|
@ -1781,9 +1777,9 @@ paths:
|
||||||
"user_id": 5,
|
"user_id": 5,
|
||||||
"profile_data":
|
"profile_data":
|
||||||
{
|
{
|
||||||
"5": { "value": "2000-1-1" },
|
"5": {"value": "2000-1-1"},
|
||||||
"4": { "value": "emacs" },
|
"4": {"value": "emacs"},
|
||||||
"7": { "value": "[10]" },
|
"7": {"value": "[10]"},
|
||||||
"1":
|
"1":
|
||||||
{
|
{
|
||||||
"value": "+1-234-567-8901",
|
"value": "+1-234-567-8901",
|
||||||
|
@ -1794,7 +1790,7 @@ paths:
|
||||||
"rendered_value": "<p>Betrayer of Othello.</p>",
|
"rendered_value": "<p>Betrayer of Othello.</p>",
|
||||||
"value": "Betrayer of Othello.",
|
"value": "Betrayer of Othello.",
|
||||||
},
|
},
|
||||||
"8": { "value": "zulip" },
|
"8": {"value": "zulip"},
|
||||||
"3":
|
"3":
|
||||||
{
|
{
|
||||||
"value": "Apples",
|
"value": "Apples",
|
||||||
|
@ -1819,7 +1815,7 @@ paths:
|
||||||
schema:
|
schema:
|
||||||
allOf:
|
allOf:
|
||||||
- $ref: "#/components/schemas/JsonSuccess"
|
- $ref: "#/components/schemas/JsonSuccess"
|
||||||
- example: { "msg": "", "result": "success" }
|
- example: {"msg": "", "result": "success"}
|
||||||
"400":
|
"400":
|
||||||
description: Bad Request
|
description: Bad Request
|
||||||
content:
|
content:
|
||||||
|
@ -1873,9 +1869,9 @@ paths:
|
||||||
"result": "success",
|
"result": "success",
|
||||||
"topics":
|
"topics":
|
||||||
[
|
[
|
||||||
{ "max_id": 26, "name": "Denmark3" },
|
{"max_id": 26, "name": "Denmark3"},
|
||||||
{ "max_id": 23, "name": "Denmark1" },
|
{"max_id": 23, "name": "Denmark1"},
|
||||||
{ "max_id": 6, "name": "Denmark2" },
|
{"max_id": 6, "name": "Denmark2"},
|
||||||
],
|
],
|
||||||
}
|
}
|
||||||
"400":
|
"400":
|
||||||
|
@ -2177,7 +2173,7 @@ paths:
|
||||||
type: array
|
type: array
|
||||||
items:
|
items:
|
||||||
type: object
|
type: object
|
||||||
example: [{ "name": "Verona", "description": "Italian City" }]
|
example: [{"name": "Verona", "description": "Italian City"}]
|
||||||
required: true
|
required: true
|
||||||
- $ref: "#/components/parameters/Principals"
|
- $ref: "#/components/parameters/Principals"
|
||||||
- name: authorization_errors_fatal
|
- name: authorization_errors_fatal
|
||||||
|
@ -2234,14 +2230,14 @@ paths:
|
||||||
"already_subscribed": {},
|
"already_subscribed": {},
|
||||||
"msg": "",
|
"msg": "",
|
||||||
"result": "success",
|
"result": "success",
|
||||||
"subscribed": { "iago@zulip.com": ["new stream"] },
|
"subscribed": {"iago@zulip.com": ["new stream"]},
|
||||||
}
|
}
|
||||||
- allOf:
|
- allOf:
|
||||||
- $ref: "#/components/schemas/AddSubscriptionsResponse"
|
- $ref: "#/components/schemas/AddSubscriptionsResponse"
|
||||||
- example:
|
- example:
|
||||||
{
|
{
|
||||||
"already_subscribed":
|
"already_subscribed":
|
||||||
{ "newbie@zulip.com": ["new stream"] },
|
{"newbie@zulip.com": ["new stream"]},
|
||||||
"msg": "",
|
"msg": "",
|
||||||
"result": "success",
|
"result": "success",
|
||||||
"subscribed": {},
|
"subscribed": {},
|
||||||
|
@ -2309,7 +2305,7 @@ paths:
|
||||||
type: string
|
type: string
|
||||||
example:
|
example:
|
||||||
[
|
[
|
||||||
{ "name": "Verona" },
|
{"name": "Verona"},
|
||||||
{
|
{
|
||||||
"name": "Denmark",
|
"name": "Denmark",
|
||||||
"color": "#e79ab5",
|
"color": "#e79ab5",
|
||||||
|
@ -2377,7 +2373,7 @@ paths:
|
||||||
{
|
{
|
||||||
"msg": "",
|
"msg": "",
|
||||||
"subscribed": {},
|
"subscribed": {},
|
||||||
"already_subscribed": { "iago@zulip.com": ["Verona"] },
|
"already_subscribed": {"iago@zulip.com": ["Verona"]},
|
||||||
"not_removed": [],
|
"not_removed": [],
|
||||||
"removed": ["new stream"],
|
"removed": ["new stream"],
|
||||||
"result": "success",
|
"result": "success",
|
||||||
|
@ -2469,7 +2465,7 @@ paths:
|
||||||
description: |
|
description: |
|
||||||
Whether the user is subscribed to the stream.
|
Whether the user is subscribed to the stream.
|
||||||
- example:
|
- example:
|
||||||
{ "msg": "", "result": "success", "is_subscribed": false }
|
{"msg": "", "result": "success", "is_subscribed": false}
|
||||||
/users/me/subscriptions/muted_topics:
|
/users/me/subscriptions/muted_topics:
|
||||||
patch:
|
patch:
|
||||||
operationId: mute_topic
|
operationId: mute_topic
|
||||||
|
@ -2522,11 +2518,11 @@ paths:
|
||||||
- allOf:
|
- allOf:
|
||||||
- $ref: "#/components/schemas/JsonError"
|
- $ref: "#/components/schemas/JsonError"
|
||||||
- example:
|
- example:
|
||||||
{ "msg": "Topic already muted", "result": "error" }
|
{"msg": "Topic already muted", "result": "error"}
|
||||||
- allOf:
|
- allOf:
|
||||||
- $ref: "#/components/schemas/JsonError"
|
- $ref: "#/components/schemas/JsonError"
|
||||||
- example:
|
- example:
|
||||||
{ "msg": "Topic is not muted", "result": "error" }
|
{"msg": "Topic is not muted", "result": "error"}
|
||||||
/realm/emoji/{emoji_name}:
|
/realm/emoji/{emoji_name}:
|
||||||
post:
|
post:
|
||||||
operationId: upload_custom_emoji
|
operationId: upload_custom_emoji
|
||||||
|
@ -2661,8 +2657,8 @@ paths:
|
||||||
type: object
|
type: object
|
||||||
example:
|
example:
|
||||||
[
|
[
|
||||||
{ "stream_id": 1, "property": "pin_to_top", "value": true },
|
{"stream_id": 1, "property": "pin_to_top", "value": true},
|
||||||
{ "stream_id": 3, "property": "color", "value": "#f00f00" },
|
{"stream_id": 3, "property": "color", "value": "#f00f00"},
|
||||||
]
|
]
|
||||||
required: true
|
required: true
|
||||||
responses:
|
responses:
|
||||||
|
@ -2795,21 +2791,21 @@ paths:
|
||||||
"is_guest": false,
|
"is_guest": false,
|
||||||
"profile_data":
|
"profile_data":
|
||||||
{
|
{
|
||||||
"4": { "value": "vim" },
|
"4": {"value": "vim"},
|
||||||
"2":
|
"2":
|
||||||
{
|
{
|
||||||
"value": "I am:\n* The prince of Denmark\n* Nephew to the usurping Claudius",
|
"value": "I am:\n* The prince of Denmark\n* Nephew to the usurping Claudius",
|
||||||
"rendered_value": "<p>I am:</p>\n<ul>\n<li>The prince of Denmark</li>\n<li>Nephew to the usurping Claudius</li>\n</ul>",
|
"rendered_value": "<p>I am:</p>\n<ul>\n<li>The prince of Denmark</li>\n<li>Nephew to the usurping Claudius</li>\n</ul>",
|
||||||
},
|
},
|
||||||
"5": { "value": "1900-1-1" },
|
"5": {"value": "1900-1-1"},
|
||||||
"7": { "value": "[11]" },
|
"7": {"value": "[11]"},
|
||||||
"6": { "value": "https://blog.zulig.org" },
|
"6": {"value": "https://blog.zulig.org"},
|
||||||
"1":
|
"1":
|
||||||
{
|
{
|
||||||
"value": "+0-11-23-456-7890",
|
"value": "+0-11-23-456-7890",
|
||||||
"rendered_value": "<p>+0-11-23-456-7890</p>",
|
"rendered_value": "<p>+0-11-23-456-7890</p>",
|
||||||
},
|
},
|
||||||
"8": { "value": "zulipbot" },
|
"8": {"value": "zulipbot"},
|
||||||
"3":
|
"3":
|
||||||
{
|
{
|
||||||
"rendered_value": "<p>Dark chocolate</p>",
|
"rendered_value": "<p>Dark chocolate</p>",
|
||||||
|
@ -2884,10 +2880,7 @@ paths:
|
||||||
items:
|
items:
|
||||||
type: object
|
type: object
|
||||||
example:
|
example:
|
||||||
[
|
[{"id": 4, "value": "vim"}, {"id": 5, "value": "1909-04-05"}]
|
||||||
{ "id": 4, "value": "vim" },
|
|
||||||
{ "id": 5, "value": "1909-04-05" },
|
|
||||||
]
|
|
||||||
required: false
|
required: false
|
||||||
|
|
||||||
responses:
|
responses:
|
||||||
|
@ -2929,7 +2922,7 @@ paths:
|
||||||
schema:
|
schema:
|
||||||
allOf:
|
allOf:
|
||||||
- $ref: "#/components/schemas/JsonSuccess"
|
- $ref: "#/components/schemas/JsonSuccess"
|
||||||
- example: { "msg": "", "result": "success" }
|
- example: {"msg": "", "result": "success"}
|
||||||
"400":
|
"400":
|
||||||
description: Bad Request
|
description: Bad Request
|
||||||
content:
|
content:
|
||||||
|
@ -3034,7 +3027,7 @@ paths:
|
||||||
type: integer
|
type: integer
|
||||||
description: |
|
description: |
|
||||||
The numeric ID assigned to this filter.
|
The numeric ID assigned to this filter.
|
||||||
- example: { "id": 42, "result": "success", "msg": "" }
|
- example: {"id": 42, "result": "success", "msg": ""}
|
||||||
/realm/filters/{filter_id}:
|
/realm/filters/{filter_id}:
|
||||||
delete:
|
delete:
|
||||||
operationId: remove_linkifier
|
operationId: remove_linkifier
|
||||||
|
@ -3139,7 +3132,7 @@ paths:
|
||||||
application/json:
|
application/json:
|
||||||
schema:
|
schema:
|
||||||
type: object
|
type: object
|
||||||
example: { "notification_settings_null": true }
|
example: {"notification_settings_null": true}
|
||||||
- name: fetch_event_types
|
- name: fetch_event_types
|
||||||
in: query
|
in: query
|
||||||
description: |
|
description: |
|
||||||
|
@ -3887,7 +3880,7 @@ paths:
|
||||||
schema:
|
schema:
|
||||||
allOf:
|
allOf:
|
||||||
- $ref: "#/components/schemas/JsonSuccess"
|
- $ref: "#/components/schemas/JsonSuccess"
|
||||||
- example: { "msg": "", "result": "success" }
|
- example: {"msg": "", "result": "success"}
|
||||||
"400":
|
"400":
|
||||||
description: Bad request.
|
description: Bad request.
|
||||||
content:
|
content:
|
||||||
|
@ -3971,7 +3964,7 @@ paths:
|
||||||
schema:
|
schema:
|
||||||
allOf:
|
allOf:
|
||||||
- $ref: "#/components/schemas/JsonSuccess"
|
- $ref: "#/components/schemas/JsonSuccess"
|
||||||
- example: { "msg": "", "result": "success" }
|
- example: {"msg": "", "result": "success"}
|
||||||
"400":
|
"400":
|
||||||
description: Bad request.
|
description: Bad request.
|
||||||
content:
|
content:
|
||||||
|
@ -4081,7 +4074,7 @@ paths:
|
||||||
schema:
|
schema:
|
||||||
allOf:
|
allOf:
|
||||||
- $ref: "#/components/schemas/JsonSuccess"
|
- $ref: "#/components/schemas/JsonSuccess"
|
||||||
- example: { "msg": "", "result": "success" }
|
- example: {"msg": "", "result": "success"}
|
||||||
"400":
|
"400":
|
||||||
description: Bad request.
|
description: Bad request.
|
||||||
content:
|
content:
|
||||||
|
@ -4155,7 +4148,7 @@ paths:
|
||||||
schema:
|
schema:
|
||||||
allOf:
|
allOf:
|
||||||
- $ref: "#/components/schemas/JsonSuccess"
|
- $ref: "#/components/schemas/JsonSuccess"
|
||||||
- example: { "result": "success", "msg": "" }
|
- example: {"result": "success", "msg": ""}
|
||||||
|
|
||||||
"400":
|
"400":
|
||||||
description: Bad request.
|
description: Bad request.
|
||||||
|
@ -4752,7 +4745,7 @@ components:
|
||||||
- success
|
- success
|
||||||
msg:
|
msg:
|
||||||
type: string
|
type: string
|
||||||
- example: { "msg": "", "result": "success" }
|
- example: {"msg": "", "result": "success"}
|
||||||
JsonError:
|
JsonError:
|
||||||
allOf:
|
allOf:
|
||||||
- $ref: "#/components/schemas/JsonResponse"
|
- $ref: "#/components/schemas/JsonResponse"
|
||||||
|
@ -4879,7 +4872,7 @@ components:
|
||||||
InvalidApiKeyError:
|
InvalidApiKeyError:
|
||||||
allOf:
|
allOf:
|
||||||
- $ref: "#/components/schemas/JsonError"
|
- $ref: "#/components/schemas/JsonError"
|
||||||
- example: { "msg": "Invalid API key", "result": "error" }
|
- example: {"msg": "Invalid API key", "result": "error"}
|
||||||
MissingArgumentError:
|
MissingArgumentError:
|
||||||
allOf:
|
allOf:
|
||||||
- $ref: "#/components/schemas/CodedError"
|
- $ref: "#/components/schemas/CodedError"
|
||||||
|
|
Loading…
Reference in New Issue