projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add OpenAPISpex for MediaController
[akkoma]
/
lib
/
pleroma
/
web
/
api_spec
/
schemas
/
account_field.ex
diff --git
a/lib/pleroma/web/api_spec/schemas/account_field.ex
b/lib/pleroma/web/api_spec/schemas/account_field.ex
index 8906d812de09e14307facf0bd91db5f5d96938f3..fa97073a0e5d7523d950f4198046de2b99c47750 100644
(file)
--- a/
lib/pleroma/web/api_spec/schemas/account_field.ex
+++ b/
lib/pleroma/web/api_spec/schemas/account_field.ex
@@
-13,16
+13,14
@@
defmodule Pleroma.Web.ApiSpec.Schemas.AccountField do
type: :object,
properties: %{
name: %Schema{type: :string},
type: :object,
properties: %{
name: %Schema{type: :string},
- value: %Schema{type: :string},
- verified_at: %Schema{type: :string, format: "date-time", nullable: true}
+ value: %Schema{type: :string
, format: :html
},
+ verified_at: %Schema{type: :string, format:
:
"date-time", nullable: true}
},
example: %{
},
example: %{
- "JSON" => %{
- "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"
- }
+ "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"
}
})
end
}
})
end