mirror of
https://akkoma.dev/AkkomaGang/akkoma.git
synced 2024-12-11 21:44:57 +00:00
32 lines
969 B
Elixir
32 lines
969 B
Elixir
|
# 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.AccountEmoji do
|
||
|
alias OpenApiSpex.Schema
|
||
|
|
||
|
require OpenApiSpex
|
||
|
|
||
|
OpenApiSpex.schema(%{
|
||
|
title: "AccountEmoji",
|
||
|
description: "Response schema for account custom fields",
|
||
|
type: :object,
|
||
|
properties: %{
|
||
|
shortcode: %Schema{type: :string},
|
||
|
url: %Schema{type: :string},
|
||
|
static_url: %Schema{type: :string},
|
||
|
visible_in_picker: %Schema{type: :boolean}
|
||
|
},
|
||
|
example: %{
|
||
|
"JSON" => %{
|
||
|
"shortcode" => "fatyoshi",
|
||
|
"url" =>
|
||
|
"https://files.mastodon.social/custom_emojis/images/000/023/920/original/e57ecb623faa0dc9.png",
|
||
|
"static_url" =>
|
||
|
"https://files.mastodon.social/custom_emojis/images/000/023/920/static/e57ecb623faa0dc9.png",
|
||
|
"visible_in_picker" => true
|
||
|
}
|
||
|
}
|
||
|
})
|
||
|
end
|