-
Notifications
You must be signed in to change notification settings - Fork 586
Update to swagger-express-mw 0.6.0 ? #345
Comments
+1 |
+1 |
@ronkot i can advise you that it works better for me now with this code...
|
Thanks, @molokoloco! Your approach worked perfectly. Just had to add cors middleware (using cors npm module). |
@molokoloco How you are dealing with oauth2 security with swagger-tools. I am using
This is working perfectly fine. But not sure about how to achieve this using swagger-tools. any idea? Tried with swagger security middleware, but it was not working. |
The thing is that since version 0.6.0 swagger-node-runner no longer use swagger-tools, it was replaced with sway. If you use the express middleware the dependency chain looks like this 0 - swagger-node https://github.com/apigee-127/sway I also add a comment from @theganyo: |
@oliverhr: this doesn't really address the question. I am also stuck. I need some features/fixes that are in later of swagger-express-mw. But I can't just replace it, or I face the same issue that @ronkot described. Basically, my existing project doesnt work any more. I am very tempted to follow the adivse of molokoloco, yet I am totally confused about the roadmap: if sway replaces swagger-tools, does it mean swagger-tools will be abandoned ??? And if the swagger-tools direction is not the way to go, then can someone please advise on the original question, how to upgrade swagger-node-mw ? (If you use this project as is, you get swagger-node-mw v0.1.0 which has horrible bugs) |
I want to add that I was having many problems with I feel like the generator for an express app should use that as boilerplate instead of using |
#460 should fix that ;) |
If the skeleton is now not the preferred approach, what would the app.js look like? |
Any plan to update to swagger-express-mw 0.6.0 ?
Or a guide to use with generated swagger-node projects?
The text was updated successfully, but these errors were encountered: