Add OpenAPI spec for ConversationController

This commit is contained in:
Egor Kislitsyn 2020-05-05 17:44:46 +04:00
commit 3a45952a3a
No known key found for this signature in database
GPG key ID: 1B49CB15B71E7805
6 changed files with 125 additions and 15 deletions

View file

@ -86,7 +86,12 @@ defmodule Pleroma.Web.ApiSpec.Schemas.Status do
properties: %{
content: %Schema{type: :object, additionalProperties: %Schema{type: :string}},
conversation_id: %Schema{type: :integer},
direct_conversation_id: %Schema{type: :string, nullable: true},
direct_conversation_id: %Schema{
type: :integer,
nullable: true,
description:
"The ID of the Mastodon direct message conversation the status is associated with (if any)"
},
emoji_reactions: %Schema{
type: :array,
items: %Schema{