Skip to content

Commit

Permalink
Merge pull request #94 from 2600hz/fix-doubled-nested-list-translation
Browse files Browse the repository at this point in the history
Fix 2x-nested translation of record list fields
  • Loading branch information
willemdj authored Jul 7, 2024
2 parents 583f4e3 + e800216 commit 70cbbf7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/erlsom_type2xsd.erl
Original file line number Diff line number Diff line change
Expand Up @@ -237,8 +237,8 @@ translateType({type, _, union, Alternatives}, Tns) ->
end;

translateType({type, _, list, [Element]}, Tns) ->
TranslatedElement = translateType(Element, Tns),
{TranslatedElement, "0", "unbounded"};
{Type, _, _} = translateType(Element, Tns),
{Type, "0", "unbounded"};
translateType({type, _, record, [{atom, _, RecordType}]}, Tns) ->
{qname(atom_to_list(RecordType), Tns),
undefined, undefined};
Expand Down

0 comments on commit 70cbbf7

Please sign in to comment.