1 # Pleroma: A lightweight social networking server
2 # Copyright © 2017-2020 Pleroma Authors <https://pleroma.social/>
3 # SPDX-License-Identifier: AGPL-3.0-only
5 defmodule Pleroma.Web.ApiSpec.Schemas.Poll do
6 alias OpenApiSpex.Schema
7 alias Pleroma.Web.ApiSpec.Schemas.AccountEmoji
13 description: "Response schema for account custom fields",
16 id: %Schema{type: :string},
17 expires_at: %Schema{type: :string, format: "date-time"},
18 expired: %Schema{type: :boolean},
19 multiple: %Schema{type: :boolean},
20 votes_count: %Schema{type: :integer},
21 voted: %Schema{type: :boolean},
22 emojis: %Schema{type: :array, items: AccountEmoji},
28 title: %Schema{type: :string},
29 votes_count: %Schema{type: :integer}