Closed pulkitsinghal closed 9 years ago
@pulkitsinghal Can you send me an example that would help me to reproduce this problem? We use extensively the node.js codegen in a project and never had such issue.
@pulkitsinghal Nevermind, I'm able to reproduce it.
awesome!
First off, thank you for the awesome work on this library!
Summary
The generated code always looks like:
And sending a request with json does not work. In order to fix this ...
form
needs to be removed entirely andbody: body,
needs to change to bejson:body
Long Story
I recently used
swagger-js-codegen
with a framework known asstrongloop/loopback
and ran into some issues so I've created a demo branch to make them easy to replicate: https://github.com/ShoppinPal/loopback-example-full-stack/tree/feature/nodejs-clientIn total I always have to tweak 5-8 things in a generated file before I can use it. But for each tweak, I'm not sure who is the culprit preventing me from getting a perfectly generated file out-of-the-box:
So I'll be filing a separate issue per "tweak" and counting on your help to either fix a real issue or better my understanding of how to accomplish what I need.