Skip to content

Commit

Permalink
Resolve conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
kazuhitoyokoi committed Feb 27, 2019
2 parents f33072d + 4c4387a commit ece49d6
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/nodegen.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ var mustache = require('mustache');
var jsStringEscape = require('js-string-escape');
var obfuscator = require('javascript-obfuscator');
var csv = require('csv-string');
var CodeGen = require('swagger-js-codegen').CodeGen;
var CodeGen = require('swagger-js-codegen-formdata').CodeGen;
var jimp = require("jimp");

function createCommonFiles(templateDirectory, data) {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@
"minimist": "1.2.0",
"mustache": "2.3.0",
"request": "2.83.0",
"swagger-js-codegen": "1.12.0",
"swagger-js-codegen-formdata": "^0.15.4",
"when": "3.7.8",
"yamljs": "0.3.0"
},
Expand Down
1 change: 1 addition & 0 deletions templates/swagger/node.js.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ module.exports = function (RED) {
} else {
{{&methodName}}_parameters.{{&camelCaseName}} = RED.util.getMessageProperty(msg, {{&methodName}}_nodeParam);
}
{{&methodName}}_parameters.{{&camelCaseName}} = !!{{&methodName}}_parameters.{{&camelCaseName}} ? {{&methodName}}_parameters.{{&camelCaseName}} : msg.payload;
{{/isNotBodyParam}}
{{/parameters}}
result = client.{{&methodName}}({{&methodName}}_parameters);
Expand Down
3 changes: 2 additions & 1 deletion templates/swagger/package.json.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@
],
"dependencies": {
"q": "1.5.1",
"request": "2.83.0"
"request": "2.83.0",
"file-type": "^10.7.1"
},
"devDependencies": {
"node-red": "0.18.7",
Expand Down

0 comments on commit ece49d6

Please sign in to comment.