aboutsummaryrefslogtreecommitdiff
path: root/lib/pleroma/web/api_spec/schemas/account_field_attribute.ex
diff options
context:
space:
mode:
authorEgor Kislitsyn <egor@kislitsyn.com>2020-04-27 22:55:05 +0400
committerEgor Kislitsyn <egor@kislitsyn.com>2020-04-27 22:55:05 +0400
commitdda65f7799e9dfa2e7b87389848eeee10993a858 (patch)
treef780e65d3682effe4fe3160617b95852d23963e3 /lib/pleroma/web/api_spec/schemas/account_field_attribute.ex
parent2efc00b3cf5413ae7f8e8411ee1372343ee2618a (diff)
downloadpleroma-dda65f7799e9dfa2e7b87389848eeee10993a858.tar.gz
Move single used schemas to operation schema
Diffstat (limited to 'lib/pleroma/web/api_spec/schemas/account_field_attribute.ex')
-rw-r--r--lib/pleroma/web/api_spec/schemas/account_field_attribute.ex24
1 files changed, 0 insertions, 24 deletions
diff --git a/lib/pleroma/web/api_spec/schemas/account_field_attribute.ex b/lib/pleroma/web/api_spec/schemas/account_field_attribute.ex
deleted file mode 100644
index 89e483655..000000000
--- a/lib/pleroma/web/api_spec/schemas/account_field_attribute.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.AccountAttributeField do
- alias OpenApiSpex.Schema
-
- require OpenApiSpex
-
- OpenApiSpex.schema(%{
- title: "AccountAttributeField",
- description: "Request schema for account custom fields",
- type: :object,
- properties: %{
- name: %Schema{type: :string},
- value: %Schema{type: :string}
- },
- required: [:name, :value],
- example: %{
- "name" => "Website",
- "value" => "https://pleroma.com"
- }
- })
-end