fix for subgroup tuple

added settings for swoosh adapters local
This commit is contained in:
Alexander 2019-12-20 10:22:53 +03:00 committed by Alexander Strizhakov
commit cda2c1fc63
No known key found for this signature in database
GPG key ID: 022896A53AEF1381
3 changed files with 37 additions and 1 deletions

View file

@ -58,15 +58,23 @@ defmodule Pleroma.Docs.Generator do
entity
|> Map.put(:suggestions, format_suggestions(suggestions))
|> format_key()
|> format_group()
|> format_children()
end
defp format_child(entity) do
entity
|> format_key()
|> format_group()
|> format_children()
end
defp format_group(%{group: group} = entity) do
Map.put(entity, :group, format_suggestion(group))
end
defp format_group(entity), do: entity
defp atom_to_string(entity) when is_binary(entity), do: entity
defp atom_to_string(entity) when is_atom(entity), do: inspect(entity)