aboutsummaryrefslogtreecommitdiff
path: root/lib/pleroma/web/api_spec/schemas
diff options
context:
space:
mode:
authorEgor Kislitsyn <egor@kislitsyn.com>2020-05-05 23:42:18 +0400
committerEgor Kislitsyn <egor@kislitsyn.com>2020-05-05 23:42:24 +0400
commit332e016bcdbda5dca90d916bc62a9c67544b5323 (patch)
tree6b36a02994b7772631681c6183bfdffe6deee384 /lib/pleroma/web/api_spec/schemas
parent6ba25d11973e56008e5d674313421197ff418d6d (diff)
downloadpleroma-332e016bcdbda5dca90d916bc62a9c67544b5323.tar.gz
Add OpenAPI spec for ScheduledActivityController
Diffstat (limited to 'lib/pleroma/web/api_spec/schemas')
-rw-r--r--lib/pleroma/web/api_spec/schemas/scheduled_status.ex7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/pleroma/web/api_spec/schemas/scheduled_status.ex b/lib/pleroma/web/api_spec/schemas/scheduled_status.ex
index f0bc4ee3c..0520d0848 100644
--- a/lib/pleroma/web/api_spec/schemas/scheduled_status.ex
+++ b/lib/pleroma/web/api_spec/schemas/scheduled_status.ex
@@ -4,8 +4,9 @@
defmodule Pleroma.Web.ApiSpec.Schemas.ScheduledStatus do
alias OpenApiSpex.Schema
- alias Pleroma.Web.ApiSpec.Schemas.VisibilityScope
+ alias Pleroma.Web.ApiSpec.Schemas.Attachment
alias Pleroma.Web.ApiSpec.Schemas.Poll
+ alias Pleroma.Web.ApiSpec.Schemas.VisibilityScope
require OpenApiSpex
@@ -17,7 +18,7 @@ defmodule Pleroma.Web.ApiSpec.Schemas.ScheduledStatus do
properties: %{
id: %Schema{type: :string},
scheduled_at: %Schema{type: :string, format: :"date-time"},
- media_attachments: %Schema{type: :array, format: :"date-time"},
+ media_attachments: %Schema{type: :array, items: Attachment},
params: %Schema{
type: :object,
required: [:text, :visibility],
@@ -47,7 +48,7 @@ defmodule Pleroma.Web.ApiSpec.Schemas.ScheduledStatus do
idempotency: nil,
in_reply_to_id: nil
},
- media_attachments: []
+ media_attachments: [Attachment.schema().example]
}
})
end