mirror of
https://github.com/dhall-lang/dhall-kubernetes.git
synced 2024-11-03 21:05:47 +03:00
Correctly generate List types
This commit is contained in:
parent
ae66b56518
commit
81988ee413
@ -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',
|
||||
|
Loading…
Reference in New Issue
Block a user