Open randomcatgamer opened 7 years ago
I have the same issue
I get this error
{"message":"Cannot read property 'type' of undefined"}
@theganyo do you mind having look into this?
Hey Ben. I see you're pushing for a new Sway release. If that can happen, it would solve everything in one fell swoop, so that would be best.
Yes hopefully that happens soon! Thanks.
Using the global security definition does not work.
The error I get is: __Cannot read property 'type' of undefined","stacktrace":"TypeError: Cannot read property 'type' of undefined
at getScopeOrAPIKey (D:\devcat\dev_workspace\workspace\backend-marketplace-productactivation\node_modules\swagger-node-runner\fittings\swagger_security.js:80:25) at andCheck (D:\devcat\dev_workspace\workspace\backend-marketplace-productactivation\node_modules\swagger-node-runner\fittings\swaggersecurity.js:51:43)
If I put the security definition within each of my paths (instead of global) it works.
Also, with swagger-node-mw 0.1.0 the global definition works.