Skip to content

Commit 0174bb8

Browse files
author
svolkov
committed
fix: remove value for --disableStrictSSL option
1 parent 0ff7875 commit 0174bb8

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ program
6060
"determines which path index should be used for routes separation (example: GET:/fruites/getFruit -> index:0 -> moduleName -> fruites)",
6161
0,
6262
)
63-
.option("--disableStrictSSL <boolean>", "disabled strict SSL", false);
63+
.option("--disableStrictSSL", "disabled strict SSL", false);
6464

6565
program.parse(process.argv);
6666

@@ -98,5 +98,5 @@ generateApi({
9898
toJS: !!js,
9999
enumNamesAsValues: enumNamesAsValues,
100100
moduleNameIndex: +(moduleNameIndex || 0),
101-
disableStrictSSL: disableStrictSSL,
101+
disableStrictSSL: !!disableStrictSSL,
102102
});

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ module.exports = {
5858
enumNamesAsValues,
5959
disableStrictSSL,
6060
});
61-
(spec ? convertSwaggerObject(spec) : getSwaggerObject(input, url, disableStrictSSL == "true"))
61+
(spec ? convertSwaggerObject(spec) : getSwaggerObject(input, url, disableStrictSSL))
6262
.then(({ usageSchema, originalSchema }) => {
6363
const templatesToRender = getTemplates(config);
6464

0 commit comments

Comments
 (0)