Add starts_at, ends_at and all_day parameters

This commit is contained in:
Tusooa Zhu 2022-03-08 19:12:01 -05:00
commit cf8334dbc1
No known key found for this signature in database
GPG key ID: 7B467EDE43A08224
6 changed files with 42 additions and 22 deletions

View file

@ -16,10 +16,14 @@ defmodule Pleroma.Web.ApiSpec.Schemas.Announcement do
id: FlakeID,
content: %Schema{type: :string},
starts_at: %Schema{
oneOf: [%Schema{type: :null}, %Schema{type: :string, format: "date-time"}]
type: :string,
format: "date-time",
nullable: true
},
ends_at: %Schema{
oneOf: [%Schema{type: :null}, %Schema{type: :string, format: "date-time"}]
type: :string,
format: "date-time",
nullable: true
},
all_day: %Schema{type: :boolean},
published_at: %Schema{type: :string, format: "date-time"},