aboutsummaryrefslogtreecommitdiff
path: root/lib/pleroma/web/api_spec
diff options
context:
space:
mode:
authorlain <lain@soykaf.club>2020-06-07 20:22:08 +0200
committerlain <lain@soykaf.club>2020-06-07 20:22:08 +0200
commitfe2a5d061463313f447b0557de05572fa3771728 (patch)
tree07afd1480a69f36d90ee90e5a780903e3a4acbe6 /lib/pleroma/web/api_spec
parent680fa5fa36d8b30a9a9749edacf1a2c69fded29a (diff)
downloadpleroma-fe2a5d061463313f447b0557de05572fa3771728.tar.gz
ChatController: Make last_read_id mandatory.
Diffstat (limited to 'lib/pleroma/web/api_spec')
-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 45fbad311..cf299bfc2 100644
--- a/lib/pleroma/web/api_spec/operations/chat_operation.ex
+++ b/lib/pleroma/web/api_spec/operations/chat_operation.ex
@@ -340,10 +340,11 @@ defmodule Pleroma.Web.ApiSpec.ChatOperation do
title: "MarkAsReadRequest",
description: "POST body for marking a number of chat messages as read",
type: :object,
+ required: [:last_read_id],
properties: %{
last_read_id: %Schema{
type: :string,
- description: "The content of your message. Optional."
+ description: "The content of your message."
}
},
example: %{