diff options
author | Egor Kislitsyn <egor@kislitsyn.com> | 2020-06-22 19:18:33 +0400 |
---|---|---|
committer | Egor Kislitsyn <egor@kislitsyn.com> | 2020-06-22 19:18:33 +0400 |
commit | b3a549e916c2a721da16f60e7665b6eb64d756dd (patch) | |
tree | bcc1fa4c1feaecee39f0dbe67428789eea228f65 /lib | |
parent | 7e6f43c0d7c625a03ee0216c2d9474253ef87b5a (diff) | |
download | pleroma-b3a549e916c2a721da16f60e7665b6eb64d756dd.tar.gz |
Update NotificationOperation spec
Diffstat (limited to 'lib')
-rw-r--r-- | lib/pleroma/web/api_spec/operations/notification_operation.ex | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/lib/pleroma/web/api_spec/operations/notification_operation.ex b/lib/pleroma/web/api_spec/operations/notification_operation.ex index 41328b5f2..f09be64cb 100644 --- a/lib/pleroma/web/api_spec/operations/notification_operation.ex +++ b/lib/pleroma/web/api_spec/operations/notification_operation.ex @@ -163,6 +163,13 @@ defmodule Pleroma.Web.ApiSpec.NotificationOperation do description: "Status that was the object of the notification, e.g. in mentions, reblogs, favourites, or polls.", nullable: true + }, + pleroma: %Schema{ + type: :object, + properties: %{ + is_seen: %Schema{type: :boolean}, + is_muted: %Schema{type: :boolean} + } } }, example: %{ @@ -170,7 +177,8 @@ defmodule Pleroma.Web.ApiSpec.NotificationOperation do "type" => "mention", "created_at" => "2019-11-23T07:49:02.064Z", "account" => Account.schema().example, - "status" => Status.schema().example + "status" => Status.schema().example, + "pleroma" => %{"is_seen" => false, "is_muted" => false} } } end |