fix: brackets not allowed in swagger schema for component names

This commit is contained in:
Stefan Strigler 2023-06-01 19:15:23 +02:00
parent 8fdc9de9e9
commit 190e44f8be
1 changed files with 1 additions and 1 deletions

View File

@ -959,7 +959,7 @@ to_bin(List) when is_list(List) ->
to_bin(Boolean) when is_boolean(Boolean) -> Boolean;
to_bin(Atom) when is_atom(Atom) -> atom_to_binary(Atom, utf8);
to_bin({Type, Args}) ->
unicode:characters_to_binary(io_lib:format("~ts(~p)", [Type, Args]));
unicode:characters_to_binary(io_lib:format("~ts-~p", [Type, Args]));
to_bin(X) ->
X.