logo

pleroma

My custom branche(s) on git.pleroma.social/pleroma/pleroma git clone https://hacktivis.me/git/pleroma.git

account_field.ex (935B)


  1. # Pleroma: A lightweight social networking server
  2. # Copyright © 2017-2022 Pleroma Authors <https://pleroma.social/>
  3. # SPDX-License-Identifier: AGPL-3.0-only
  4. defmodule Pleroma.Web.ApiSpec.Schemas.AccountField do
  5. alias OpenApiSpex.Schema
  6. require OpenApiSpex
  7. OpenApiSpex.schema(%{
  8. title: "AccountField",
  9. description: "Response schema for account custom fields",
  10. type: :object,
  11. properties: %{
  12. name: %Schema{type: :string},
  13. value: %Schema{type: :string, format: :html},
  14. verified_at: %Schema{type: :string, format: :"date-time", nullable: true}
  15. },
  16. example: %{
  17. "name" => "Website",
  18. "value" =>
  19. "<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>",
  20. "verified_at" => "2019-08-29T04:14:55.571+00:00"
  21. }
  22. })
  23. end