Skip to content

Commit

Permalink
pretest to test cli wiring
Browse files Browse the repository at this point in the history
  • Loading branch information
ralfhandl committed Dec 21, 2023
1 parent fa878b4 commit d7355fd
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/PingTest_V1.no-batch.openapi3.json
Original file line number Diff line number Diff line change
Expand Up @@ -255,4 +255,4 @@
}
}
}
}
}
2 changes: 1 addition & 1 deletion lib/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ function convert(source) {
skipBatchPath: argv.skipBatchPath,
defaultTitle: argv.title,
defaultDescription: argv.description,
rootResourcesToKeep: Array.isArray(argv.keep) ? argv.keep : [argv.keep],
rootResourcesToKeep: Array.isArray(argv.keep) ? argv.keep : argv.keep? [argv.keep]: undefined,
});

stringifyStream(openapi, null, argv.pretty ? 4 : 0).pipe(
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
},
"scripts": {
"build": "node lib/transform.js",
"pretest": "node lib/cli.js -p --skipBatchPath -t examples/PingTest_V1.no-batch.openapi3.json examples/PingTest_V1.xml",
"test": "c8 mocha",
"watch": "mocha --watch"
},
Expand Down

0 comments on commit d7355fd

Please sign in to comment.