Open ssc2015 opened 7 years ago
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
me too,i'am running Node-Red v 0.14.3 and swagger v 0.1.8 on heroku.
Any solution available?
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.