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.ScheduledStatus do
6 alias OpenApiSpex.Schema
7 alias Pleroma.Web.ApiSpec.Schemas.Attachment
8 alias Pleroma.Web.ApiSpec.Schemas.Poll
9 alias Pleroma.Web.ApiSpec.Schemas.VisibilityScope
14 title: "ScheduledStatus",
15 description: "Represents a status that will be published at a future scheduled date.",
17 required: [:id, :scheduled_at, :params],
19 id: %Schema{type: :string},
20 scheduled_at: %Schema{type: :string, format: :"date-time"},
21 media_attachments: %Schema{type: :array, items: Attachment},
24 required: [:text, :visibility],
26 text: %Schema{type: :string, nullable: true},
27 media_ids: %Schema{type: :array, nullable: true, items: %Schema{type: :string}},
28 sensitive: %Schema{type: :boolean, nullable: true},
29 spoiler_text: %Schema{type: :string, nullable: true},
30 visibility: %Schema{allOf: [VisibilityScope], nullable: true},
31 scheduled_at: %Schema{type: :string, format: :"date-time", nullable: true},
32 poll: %Schema{allOf: [Poll], nullable: true},
33 in_reply_to_id: %Schema{type: :string, nullable: true}
39 scheduled_at: "2019-12-05T12:33:01.000Z",
51 media_attachments: [Attachment.schema().example]