We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
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
Describe the bug When the body type isx-www-form-urlencoded, the generated Axios code has wrong indentation.
x-www-form-urlencoded
To Reproduce Choose body as x-www-form-urlencoded and enter at least two key-value pairs. The output is:
var data = qs.stringify({ 'hello': 'world', 'this': 'that' });
Expected code snippet and corresponding request
Screenshots
Additional context This is the offending line in codegens/nodejs-axios/lib/parseRequest.js:
codegens/nodejs-axios/lib/parseRequest.js
bodySnippet += ` data = qs.stringify({\n ${dataArray.join(',\n')} \n});`;
We are not doing any indentation at all.
The text was updated successfully, but these errors were encountered:
Fix issue #445
b7be020
webholik
Successfully merging a pull request may close this issue.
Describe the bug
When the body type is
x-www-form-urlencoded
, the generated Axios code has wrong indentation.To Reproduce
Choose body as
x-www-form-urlencoded
and enter at least two key-value pairs.The output is:
Expected code snippet and corresponding request
Screenshots

Additional context
This is the offending line in
codegens/nodejs-axios/lib/parseRequest.js
:We are not doing any indentation at all.
The text was updated successfully, but these errors were encountered: