aboutsummaryrefslogtreecommitdiff
path: root/lib/pleroma/web/api_spec/operations
diff options
context:
space:
mode:
authorlain <lain@soykaf.club>2020-05-06 16:12:36 +0200
committerlain <lain@soykaf.club>2020-05-06 16:12:36 +0200
commit20baa2eaf04425cf0a2eebc84760be6c12ee7f51 (patch)
tree5034177137693546741945fed7476c2fb77b8dbd /lib/pleroma/web/api_spec/operations
parent205313e54146c00374e3edfa951132a7229fa16d (diff)
downloadpleroma-20baa2eaf04425cf0a2eebc84760be6c12ee7f51.tar.gz
ChatMessages: Add attachments.
Diffstat (limited to 'lib/pleroma/web/api_spec/operations')
-rw-r--r--lib/pleroma/web/api_spec/operations/chat_operation.ex3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/pleroma/web/api_spec/operations/chat_operation.ex b/lib/pleroma/web/api_spec/operations/chat_operation.ex
index 0fe0e07b2..8b9dc2e44 100644
--- a/lib/pleroma/web/api_spec/operations/chat_operation.ex
+++ b/lib/pleroma/web/api_spec/operations/chat_operation.ex
@@ -236,7 +236,8 @@ defmodule Pleroma.Web.ApiSpec.ChatOperation do
description: "POST body for creating an chat message",
type: :object,
properties: %{
- content: %Schema{type: :string, description: "The content of your message"}
+ content: %Schema{type: :string, description: "The content of your message"},
+ media_id: %Schema{type: :string, description: "The id of an upload"}
},
required: [:content],
example: %{