ChatController: Make last_read_id mandatory.

This commit is contained in:
lain 2020-06-07 20:22:08 +02:00
commit fe2a5d0614
3 changed files with 11 additions and 27 deletions

View file

@ -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: %{