forked from AkkomaGang/akkoma
Update NotificationOperation spec
This commit is contained in:
parent
7e6f43c0d7
commit
b3a549e916
1 changed files with 9 additions and 1 deletions
|
@ -163,6 +163,13 @@ def notification do
|
||||||
description:
|
description:
|
||||||
"Status that was the object of the notification, e.g. in mentions, reblogs, favourites, or polls.",
|
"Status that was the object of the notification, e.g. in mentions, reblogs, favourites, or polls.",
|
||||||
nullable: true
|
nullable: true
|
||||||
|
},
|
||||||
|
pleroma: %Schema{
|
||||||
|
type: :object,
|
||||||
|
properties: %{
|
||||||
|
is_seen: %Schema{type: :boolean},
|
||||||
|
is_muted: %Schema{type: :boolean}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
example: %{
|
example: %{
|
||||||
|
@ -170,7 +177,8 @@ def notification do
|
||||||
"type" => "mention",
|
"type" => "mention",
|
||||||
"created_at" => "2019-11-23T07:49:02.064Z",
|
"created_at" => "2019-11-23T07:49:02.064Z",
|
||||||
"account" => Account.schema().example,
|
"account" => Account.schema().example,
|
||||||
"status" => Status.schema().example
|
"status" => Status.schema().example,
|
||||||
|
"pleroma" => %{"is_seen" => false, "is_muted" => false}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue