node-red / node-red-node-swagger

A set of tools for generating Swagger api documentation based on the HTTP nodes deployed in a flow
Apache License 2.0
62 stars 46 forks source link

Copy/Paste of an http-in node with Swagger docs does not copy the doc files #55

Open shrickus opened 6 years ago

shrickus commented 6 years ago

I tried to duplicate my http-in node (url = /nodes) in order to add a named parameter (url = /nodes/:type). Any changes I made to either list of query parameters would overwrite the changes I made in the other copy of the node. Is this the expected behavior when two nodes share the same root url?

I thought it might be because the root of the path is identical, but even after changing the url of the first node, the two nodes are sharing the same swagger doc file. I ended up having to remove both nodes and recreate them from scratch.