Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Swagger Doc Generation failing in Sub Flows #43

Open
ssc2015 opened this issue Jul 27, 2016 · 3 comments
Open

Swagger Doc Generation failing in Sub Flows #43

ssc2015 opened this issue Jul 27, 2016 · 3 comments

Comments

@ssc2015
Copy link

ssc2015 commented Jul 27, 2016

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.

@rewasa
Copy link

rewasa commented Aug 12, 2016

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

@xzonepiece
Copy link

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

@nitingautam
Copy link

Any solution available?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants