2020-04-05 22:15:37 +02:00
|
|
|
# Pleroma: A lightweight social networking server
|
2021-01-13 07:49:20 +01:00
|
|
|
# Copyright © 2017-2021 Pleroma Authors <https://pleroma.social/>
|
2020-04-05 22:15:37 +02:00
|
|
|
# SPDX-License-Identifier: AGPL-3.0-only
|
|
|
|
|
|
|
|
defmodule Pleroma.Web.ApiSpec.Schemas.AccountField do
|
|
|
|
alias OpenApiSpex.Schema
|
|
|
|
|
|
|
|
require OpenApiSpex
|
|
|
|
|
|
|
|
OpenApiSpex.schema(%{
|
|
|
|
title: "AccountField",
|
|
|
|
description: "Response schema for account custom fields",
|
|
|
|
type: :object,
|
|
|
|
properties: %{
|
|
|
|
name: %Schema{type: :string},
|
2020-04-21 21:30:24 +02:00
|
|
|
value: %Schema{type: :string, format: :html},
|
|
|
|
verified_at: %Schema{type: :string, format: :"date-time", nullable: true}
|
2020-04-05 22:15:37 +02:00
|
|
|
},
|
|
|
|
example: %{
|
2020-04-21 21:30:24 +02:00
|
|
|
"name" => "Website",
|
|
|
|
"value" =>
|
|
|
|
"<a href=\"https://pleroma.com\" rel=\"me nofollow noopener noreferrer\" target=\"_blank\"><span class=\"invisible\">https://</span><span class=\"\">pleroma.com</span><span class=\"invisible\"></span></a>",
|
|
|
|
"verified_at" => "2019-08-29T04:14:55.571+00:00"
|
2020-04-05 22:15:37 +02:00
|
|
|
}
|
|
|
|
})
|
|
|
|
end
|