fix for subgroup tuple
added settings for swoosh adapters local
This commit is contained in:
parent
063ab6d911
commit
cda2c1fc63
3 changed files with 37 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue