projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Change follow_operation schema to use type BooleanLike (#301)
[akkoma]
/
lib
/
pleroma
/
web
/
api_spec
/
operations
/
account_operation.ex
diff --git
a/lib/pleroma/web/api_spec/operations/account_operation.ex
b/lib/pleroma/web/api_spec/operations/account_operation.ex
index b305dc1ea8fb3d544efe37dae11a4bd0185be856..359a73ac06e3ddcd45914d61f3835e902d67a077 100644
(file)
--- a/
lib/pleroma/web/api_spec/operations/account_operation.ex
+++ b/
lib/pleroma/web/api_spec/operations/account_operation.ex
@@
-223,12
+223,12
@@
defmodule Pleroma.Web.ApiSpec.AccountOperation do
type: :object,
properties: %{
reblogs: %Schema{
type: :object,
properties: %{
reblogs: %Schema{
-
type: :boolean
,
+
allOf: [BooleanLike]
,
description: "Receive this account's reblogs in home timeline? Defaults to true.",
default: true
},
notify: %Schema{
description: "Receive this account's reblogs in home timeline? Defaults to true.",
default: true
},
notify: %Schema{
-
type: :boolean
,
+
allOf: [BooleanLike]
,
description:
"Receive notifications for all statuses posted by the account? Defaults to false.",
default: false
description:
"Receive notifications for all statuses posted by the account? Defaults to false.",
default: false