d7af67012f
CCBUG: https://git.pleroma.social/pleroma/pleroma/-/issues/2836 CCBUG: https://git.pleroma.social/pleroma/pleroma/-/issues/1470
22 lines
643 B
Elixir
22 lines
643 B
Elixir
# Pleroma: A lightweight social networking server
|
|
# Copyright © 2017-2022 Pleroma Authors <https://pleroma.social/>
|
|
# SPDX-License-Identifier: AGPL-3.0-only
|
|
|
|
defmodule Pleroma.Web.ApiSpec.Schemas.Announcement do
|
|
alias OpenApiSpex.Schema
|
|
alias Pleroma.Web.ApiSpec.Schemas.FlakeID
|
|
|
|
require OpenApiSpex
|
|
|
|
OpenApiSpex.schema(%{
|
|
title: "Account",
|
|
description: "Response schema for an account",
|
|
type: :object,
|
|
properties: %{
|
|
id: FlakeID,
|
|
content: %Schema{type: :string},
|
|
published_at: %Schema{type: :string, format: "date-time"},
|
|
updated_at: %Schema{type: :string, format: "date-time"}
|
|
}
|
|
})
|
|
end
|