diff options
author | Egor Kislitsyn <egor@kislitsyn.com> | 2020-04-27 22:55:05 +0400 |
---|---|---|
committer | Egor Kislitsyn <egor@kislitsyn.com> | 2020-04-27 22:55:05 +0400 |
commit | dda65f7799e9dfa2e7b87389848eeee10993a858 (patch) | |
tree | f780e65d3682effe4fe3160617b95852d23963e3 /lib/pleroma/web/api_spec/schemas/account_mute_request.ex | |
parent | 2efc00b3cf5413ae7f8e8411ee1372343ee2618a (diff) | |
download | pleroma-dda65f7799e9dfa2e7b87389848eeee10993a858.tar.gz |
Move single used schemas to operation schema
Diffstat (limited to 'lib/pleroma/web/api_spec/schemas/account_mute_request.ex')
-rw-r--r-- | lib/pleroma/web/api_spec/schemas/account_mute_request.ex | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/lib/pleroma/web/api_spec/schemas/account_mute_request.ex b/lib/pleroma/web/api_spec/schemas/account_mute_request.ex deleted file mode 100644 index a61f6d04c..000000000 --- a/lib/pleroma/web/api_spec/schemas/account_mute_request.ex +++ /dev/null @@ -1,24 +0,0 @@ -# Pleroma: A lightweight social networking server -# Copyright © 2017-2020 Pleroma Authors <https://pleroma.social/> -# SPDX-License-Identifier: AGPL-3.0-only - -defmodule Pleroma.Web.ApiSpec.Schemas.AccountMuteRequest do - alias OpenApiSpex.Schema - require OpenApiSpex - - OpenApiSpex.schema(%{ - title: "AccountMuteRequest", - description: "POST body for muting an account", - type: :object, - properties: %{ - notifications: %Schema{ - type: :boolean, - description: "Mute notifications in addition to statuses? Defaults to true.", - default: true - } - }, - example: %{ - "notifications" => true - } - }) -end |