Fix formatting

This commit is contained in:
Egor Kislitsyn 2020-04-15 15:39:32 +04:00
parent 5a2e45a218
commit 8ed162b655
1 changed files with 25 additions and 6 deletions

View File

@ -118,19 +118,38 @@ def statuses_operation do
%Reference{"$ref": "#/components/parameters/accountIdOrNickname"}, %Reference{"$ref": "#/components/parameters/accountIdOrNickname"},
Operation.parameter(:pinned, :query, BooleanLike, "Include only pinned statuses"), Operation.parameter(:pinned, :query, BooleanLike, "Include only pinned statuses"),
Operation.parameter(:tagged, :query, :string, "With tag"), Operation.parameter(:tagged, :query, :string, "With tag"),
Operation.parameter(:only_media, :query, BooleanLike, "Include only statuses with media attached"), Operation.parameter(
Operation.parameter(:with_muted, :query, BooleanLike, "Include statuses from muted acccounts."), :only_media,
:query,
BooleanLike,
"Include only statuses with media attached"
),
Operation.parameter(
:with_muted,
:query,
BooleanLike,
"Include statuses from muted acccounts."
),
Operation.parameter(:exclude_reblogs, :query, BooleanLike, "Exclude reblogs"), Operation.parameter(:exclude_reblogs, :query, BooleanLike, "Exclude reblogs"),
Operation.parameter( Operation.parameter(
:exclude_visibilities, :exclude_visibilities,
:query, :query,
%Schema{type: :array, items: VisibilityScope}, %Schema{type: :array, items: VisibilityScope},
"Exclude visibilities" "Exclude visibilities"
), ),
Operation.parameter(:max_id, :query, :string, "Return statuses older than this id"), Operation.parameter(:max_id, :query, :string, "Return statuses older than this ID"),
Operation.parameter(:min_id, :query, :string, "Return the oldest statuses newer than this id. "), Operation.parameter(
Operation.parameter(:since_id, :query, :string, "Return the newest statuses newer than this id. "), :min_id,
:query,
:string,
"Return the oldest statuses newer than this ID"
),
Operation.parameter(
:since_id,
:query,
:string,
"Return the newest statuses newer than this ID"
),
Operation.parameter( Operation.parameter(
:limit, :limit,
:query, :query,