node-red-node-swagger icon indicating copy to clipboard operation
node-red-node-swagger copied to clipboard

Swagger Doc Generation failing in Sub Flows

Open ssc2015 opened this issue 9 years ago • 3 comments

When HTTP In and HTTP Response nodes are included in a "sub flow", Swagger doc generation is failing with the following error in the log at line 132 in swagger.js.

TypeError: Cannot read property 'type' of null at checkWiresForHttpResponse (/home/mphil/nodered/node_modules/node-red-node-swagger/swagger/swagger.js:132:23) at /home/mphil/nodered/node_modules/node-red-node-swagger/swagger/swagger.js:52:20

I am testing with Node-RED version 0.14.5 and node-red-node-swagger version 0.1.8.

The end point itself is working fine if I invoke it directly and only swagger doc generation seems to be an issue. Please let me know if you need any additional details.

ssc2015 avatar Jul 27 '16 20:07 ssc2015

same here, when add a swagger-doc to a http-in it will crash because in line 91 from swagger.js the length is undefined. Info edits are saved but parameter and response edits not. I'am running Node-RED v 0.14.3 and swagger v 0.1.8. My Node-RED is embedded into an express app v 3.10.2

rewasa avatar Aug 12 '16 12:08 rewasa

me too,i'am running Node-Red v 0.14.3 and swagger v 0.1.8 on heroku.

xzonepiece avatar Aug 14 '16 07:08 xzonepiece

Any solution available?

nitingautam avatar May 27 '17 11:05 nitingautam