Skip to content

Commit

Permalink
fix(call-service): fix for validation of data field
Browse files Browse the repository at this point in the history
  • Loading branch information
zachowj committed Jul 28, 2019
1 parent b118009 commit 0902162
Showing 1 changed file with 1 addition and 19 deletions.
20 changes: 1 addition & 19 deletions nodes/call-service/call-service.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,25 +20,7 @@
service_domain: { value: "" },
service: { value: "" },
entityId: { value: "" },
data: {
value: "",
validate: function(v) {
// data isn't required since it could be either not needed or provided via payload
if (
!v ||
$("#node-input-dataType").val() === "jsonata" ||
template.indexOf("{{") !== -1
) {
return true;
}
try {
JSON.parse(v);
return true;
} catch (e) {
return false;
}
}
},
data: { value: "" },
dataType: { value: "json" },
mergecontext: { value: null },
output_location: { value: "payload" },
Expand Down

0 comments on commit 0902162

Please sign in to comment.