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
8 alias Pleroma.Web.ApiSpec.Schemas.FlakeID
14 description: "Response schema for account custom fields",
18 expires_at: %Schema{type: :string, format: "date-time"},
19 expired: %Schema{type: :boolean},
20 multiple: %Schema{type: :boolean},
21 votes_count: %Schema{type: :integer},
22 voted: %Schema{type: :boolean},
23 emojis: %Schema{type: :array, items: AccountEmoji},
29 title: %Schema{type: :string},
30 votes_count: %Schema{type: :integer}