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.Conversation do
6 alias OpenApiSpex.Schema
7 alias Pleroma.Web.ApiSpec.Schemas.Account
8 alias Pleroma.Web.ApiSpec.Schemas.Status
13 title: "Conversation",
14 description: "Represents a conversation with \"direct message\" visibility.",
16 required: [:id, :accounts, :unread],
18 id: %Schema{type: :string},
22 description: "Participants in the conversation"
26 description: "Is the conversation currently marked as unread?"
31 description: "The last status in the conversation, to be used for optional display"
37 "accounts" => [Account.schema().example],
38 "last_status" => Status.schema().example