Correctly generate List types

This commit is contained in:
Fabrizio Ferrai 2018-05-30 11:57:54 +03:00 committed by Arian van Putten
parent ae66b56518
commit 81988ee413

View File

@ -14,7 +14,7 @@ def get_typ(props, required, importing_from_default=False):
if typ == 'object':
x = '(List {mapKey : Text, mapValue : Text})'
elif typ == 'array':
x = get_typ(props['items'], True, importing_from_default)
x = "List " + get_typ(props['items'], True, importing_from_default)
else:
mapping = {
'string' : 'Text',