projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add AdminAPI.InviteView
[akkoma]
/
lib
/
pleroma
/
web
/
api_spec
/
operations
/
subscription_operation.ex
diff --git
a/lib/pleroma/web/api_spec/operations/subscription_operation.ex
b/lib/pleroma/web/api_spec/operations/subscription_operation.ex
index cf6dcb06850d04a2712a8c5afb808e87bf7a0993..c575a87e622e78fc0125956d0abbba29cbc22d15 100644
(file)
--- a/
lib/pleroma/web/api_spec/operations/subscription_operation.ex
+++ b/
lib/pleroma/web/api_spec/operations/subscription_operation.ex
@@
-7,6
+7,7
@@
defmodule Pleroma.Web.ApiSpec.SubscriptionOperation do
alias OpenApiSpex.Schema
alias Pleroma.Web.ApiSpec.Helpers
alias Pleroma.Web.ApiSpec.Schemas.ApiError
alias OpenApiSpex.Schema
alias Pleroma.Web.ApiSpec.Helpers
alias Pleroma.Web.ApiSpec.Schemas.ApiError
+ alias Pleroma.Web.ApiSpec.Schemas.BooleanLike
alias Pleroma.Web.ApiSpec.Schemas.PushSubscription
def open_api_operation(action) do
alias Pleroma.Web.ApiSpec.Schemas.PushSubscription
def open_api_operation(action) do
@@
-117,27
+118,27
@@
defmodule Pleroma.Web.ApiSpec.SubscriptionOperation do
type: :object,
properties: %{
follow: %Schema{
type: :object,
properties: %{
follow: %Schema{
-
type: :boolean
,
+
allOf: [BooleanLike]
,
nullable: true,
description: "Receive follow notifications?"
},
favourite: %Schema{
nullable: true,
description: "Receive follow notifications?"
},
favourite: %Schema{
-
type: :boolean
,
+
allOf: [BooleanLike]
,
nullable: true,
description: "Receive favourite notifications?"
},
reblog: %Schema{
nullable: true,
description: "Receive favourite notifications?"
},
reblog: %Schema{
-
type: :boolean
,
+
allOf: [BooleanLike]
,
nullable: true,
description: "Receive reblog notifications?"
},
mention: %Schema{
nullable: true,
description: "Receive reblog notifications?"
},
mention: %Schema{
-
type: :boolean
,
+
allOf: [BooleanLike]
,
nullable: true,
description: "Receive mention notifications?"
},
poll: %Schema{
nullable: true,
description: "Receive mention notifications?"
},
poll: %Schema{
-
type: :boolean
,
+
allOf: [BooleanLike]
,
nullable: true,
description: "Receive poll notifications?"
}
nullable: true,
description: "Receive poll notifications?"
}
@@
-181,27
+182,27
@@
defmodule Pleroma.Web.ApiSpec.SubscriptionOperation do
type: :object,
properties: %{
follow: %Schema{
type: :object,
properties: %{
follow: %Schema{
-
type: :boolean
,
+
allOf: [BooleanLike]
,
nullable: true,
description: "Receive follow notifications?"
},
favourite: %Schema{
nullable: true,
description: "Receive follow notifications?"
},
favourite: %Schema{
-
type: :boolean
,
+
allOf: [BooleanLike]
,
nullable: true,
description: "Receive favourite notifications?"
},
reblog: %Schema{
nullable: true,
description: "Receive favourite notifications?"
},
reblog: %Schema{
-
type: :boolean
,
+
allOf: [BooleanLike]
,
nullable: true,
description: "Receive reblog notifications?"
},
mention: %Schema{
nullable: true,
description: "Receive reblog notifications?"
},
mention: %Schema{
-
type: :boolean
,
+
allOf: [BooleanLike]
,
nullable: true,
description: "Receive mention notifications?"
},
poll: %Schema{
nullable: true,
description: "Receive mention notifications?"
},
poll: %Schema{
-
type: :boolean
,
+
allOf: [BooleanLike]
,
nullable: true,
description: "Receive poll notifications?"
}
nullable: true,
description: "Receive poll notifications?"
}