I have created flow with multiple outputs function node:
The swagger output doesn't contains this path, since the response node is connected to the second output.
When I have connected it to the first output - it worked.
I think the following line is problematic:
var wires = node.wires[0]; ( in function: checkWiresForHttpResponse swagger.js:129)
I changed it to be like that:
function checkWiresForHttpResponse(node) {
var outputs = node.wires;
for (var o in outputs) {
for (var w in outputs[o]) {
var newNode = RED.nodes.getNode(outputs[o][w]);
if (newNode.type == "http response") {
return true;
} else if (checkWiresForHttpResponse(newNode)) {
return true;
}
}
}
return false;
}
I have created flow with multiple outputs function node: The swagger output doesn't contains this path, since the response node is connected to the second output.
When I have connected it to the first output - it worked.
I think the following line is problematic:
var wires = node.wires[0];
( in function:checkWiresForHttpResponse
swagger.js:129)I changed it to be like that:
and it solved the problem.