1 # Pleroma: A lightweight social networking server
2 # Copyright © 2017-2022 Pleroma Authors <https://pleroma.social/>
3 # SPDX-License-Identifier: AGPL-3.0-only
5 defmodule Pleroma.Web.ApiSpec.Schemas.Announcement do
6 alias OpenApiSpex.Schema
7 alias Pleroma.Web.ApiSpec.Schemas.FlakeID
12 title: "Announcement",
13 description: "Response schema for an announcement",
17 content: %Schema{type: :string},
28 all_day: %Schema{type: :boolean},
29 published_at: %Schema{type: :string, format: "date-time"},
30 updated_at: %Schema{type: :string, format: "date-time"},
31 read: %Schema{type: :boolean},
32 mentions: %Schema{type: :array},
33 statuses: %Schema{type: :array},
34 tags: %Schema{type: :array},
35 emojis: %Schema{type: :array},
36 reactions: %Schema{type: :array},
40 raw_content: %Schema{type: :string}