|
|
@@ -25,9 +25,23 @@ |
|
|
|
"required": "${dfield.required}", |
|
|
|
<#if dfield.lookup??> |
|
|
|
"lookup": { |
|
|
|
<#list dfield.lookup as k, v> |
|
|
|
"${k}": "${v}" <#if k_has_next>,</#if> |
|
|
|
</#list> |
|
|
|
<#list dfield.lookup as k, v> |
|
|
|
<#if v?is_enumerable> |
|
|
|
"${k}": [ |
|
|
|
<#list v as v1> |
|
|
|
{ |
|
|
|
<#list v1 as vk1, vv1> |
|
|
|
"${vk1}": "${vv1}"<#if vk1_has_next>,</#if> |
|
|
|
</#list> |
|
|
|
} |
|
|
|
<#if v1_has_next>,</#if> |
|
|
|
</#list> |
|
|
|
] |
|
|
|
<#else> |
|
|
|
"${k}": "${v}" |
|
|
|
</#if> |
|
|
|
<#if k_has_next>,</#if> |
|
|
|
</#list> |
|
|
|
}, |
|
|
|
</#if> |
|
|
|
<#if dfield.maxlength gt 0> |
|
|
|