Skip to content
This repository was archived by the owner on Nov 9, 2022. It is now read-only.

Commit ac381dc

Browse files
committed
Take care when json arrays required
1 parent 8212c47 commit ac381dc

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

rest-api/ext/process.xqy

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ function ext:put(
6868
$res
6969
else
7070
let $config := json:config("custom")
71+
let $cx := map:put($config, "array-element-names",(xs:QName("wf:audit"),xs:QName("wf:metric")))
7172
let $cx := map:put($config, "text-value", "label" )
7273
let $cx := map:put($config , "camel-case", fn:true() )
7374
return
@@ -118,6 +119,7 @@ function ext:get(
118119
$out
119120
else
120121
let $config := json:config("custom")
122+
let $cx := map:put($config, "array-element-names",(xs:QName("wf:audit"),xs:QName("wf:metric")))
121123
let $cx := map:put($config, "text-value", "label" )
122124
let $cx := map:put($config , "camel-case", fn:true() )
123125
return
@@ -255,6 +257,7 @@ function ext:post(
255257
$out
256258
else
257259
let $config := json:config("custom")
260+
let $cx := map:put($config, "array-element-names",(xs:QName("wf:audit"),xs:QName("wf:metric")))
258261
let $cx := map:put($config, "text-value", "label" )
259262
let $cx := map:put($config , "camel-case", fn:true() )
260263
return

0 commit comments

Comments
 (0)