diff options
author | rinpatch <rin@patch.cx> | 2021-02-18 09:54:59 +0000 |
---|---|---|
committer | rinpatch <rin@patch.cx> | 2021-02-18 09:54:59 +0000 |
commit | 8829a408ecf3bfffaf59af415817220fd63a81b7 (patch) | |
tree | 075fd003d8ae2f2cbba71a08b46dd0331b740416 /lib/pleroma/web/api_spec | |
parent | c0437d12440acb08f30a456fade657de735c19d8 (diff) | |
parent | 98ab2b82a649ceb2f50c3058a1a52349507959c4 (diff) | |
download | pleroma-8829a408ecf3bfffaf59af415817220fd63a81b7.tar.gz |
Merge branch 'fix/chats-no-unread-in-openapi' into 'develop'
ChatMessage schema: Add `unread` property
See merge request pleroma/pleroma!3323
Diffstat (limited to 'lib/pleroma/web/api_spec')
-rw-r--r-- | lib/pleroma/web/api_spec/schemas/chat_message.ex | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/pleroma/web/api_spec/schemas/chat_message.ex b/lib/pleroma/web/api_spec/schemas/chat_message.ex index 6986b9c17..348fe95f8 100644 --- a/lib/pleroma/web/api_spec/schemas/chat_message.ex +++ b/lib/pleroma/web/api_spec/schemas/chat_message.ex @@ -52,7 +52,8 @@ defmodule Pleroma.Web.ApiSpec.Schemas.ChatMessage do title: %Schema{type: :string, description: "Title of linked resource"}, description: %Schema{type: :string, description: "Description of preview"} } - } + }, + unread: %Schema{type: :boolean, description: "Whether a message has been marked as read."} }, example: %{ "account_id" => "someflakeid", @@ -69,7 +70,8 @@ defmodule Pleroma.Web.ApiSpec.Schemas.ChatMessage do } ], "id" => "14", - "attachment" => nil + "attachment" => nil, + "unread" => false } }) end |