fixing validation
This commit is contained in:
parent
212990557f
commit
9fc54797c6
|
@ -18,7 +18,7 @@
|
|||
"id" : "${workflow.input.client_id}",
|
||||
"ctx" : "${workflow.input.context}",
|
||||
"filter" : "${workflow.input.filter}",
|
||||
"scriptExpression": "function e(v){ return (v == null || (v.trim && v.trim() === ''))}; if(e($.ctx)) throw('Context must not be empty'); f=$.filter; if(e(f)) f = []; else if(!(f instanceof Array)) throw('Filter must be empty or Array'); return { encoded_root_vo : encodeURI($.root_vo), filter : filter}"
|
||||
"scriptExpression": "function e(v){ return (v == null || (v.trim && v.trim() === ''))}; if(e($.ctx)) throw('Context must not be empty'); f=$.filter; if(e(f)) f = []; else if(!(f instanceof Array)) throw('Filter must be empty or Array'); return { encoded_root_vo : encodeURI($.root_vo), filter : f}"
|
||||
}
|
||||
}
|
||||
]
|
||||
|
|
Loading…
Reference in New Issue