diff options
author | Tusooa Zhu <tusooa@kazv.moe> | 2022-03-08 19:12:01 -0500 |
---|---|---|
committer | Tusooa Zhu <tusooa@kazv.moe> | 2022-03-08 19:12:01 -0500 |
commit | cf8334dbc153eed7d65febb4ae4fd3c03bb106b2 (patch) | |
tree | d3201ebdd3e8937ec37ea043148e3164b3d7938a /lib/pleroma/web/api_spec/operations/admin | |
parent | fcf3c9057ec1c49a0c9a400985c1dde4a5d7e9db (diff) | |
download | pleroma-cf8334dbc153eed7d65febb4ae4fd3c03bb106b2.tar.gz pleroma-cf8334dbc153eed7d65febb4ae4fd3c03bb106b2.zip |
Add starts_at, ends_at and all_day parameters
Diffstat (limited to 'lib/pleroma/web/api_spec/operations/admin')
-rw-r--r-- | lib/pleroma/web/api_spec/operations/admin/announcement_operation.ex | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/pleroma/web/api_spec/operations/admin/announcement_operation.ex b/lib/pleroma/web/api_spec/operations/admin/announcement_operation.ex index e4212dd06..8179a0e7b 100644 --- a/lib/pleroma/web/api_spec/operations/admin/announcement_operation.ex +++ b/lib/pleroma/web/api_spec/operations/admin/announcement_operation.ex @@ -95,7 +95,10 @@ defmodule Pleroma.Web.ApiSpec.Admin.AnnouncementOperation do type: :object, required: [:content], properties: %{ - content: %Schema{type: :string} + content: %Schema{type: :string}, + starts_at: %Schema{type: :string, format: "date-time"}, + ends_at: %Schema{type: :string, format: "date-time"}, + all_day: %Schema{type: :boolean} } } end |