Skip to content

Commit

Permalink
Fix explanation for #4
Browse files Browse the repository at this point in the history
  • Loading branch information
abhijitpostman committed Dec 17, 2018
1 parent 799f91f commit dd2e4b5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions bin/openapi2postmanv2.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,9 @@ if (testFlag) {
else if (inputFile) {
inputFile = path.resolve(inputFile);
console.log('Input file: ', inputFile); // eslint-disable-line no-console
// The last commit removed __dirname while reading inputFile
// this will fix https://github.com/postmanlabs/openapi-to-postman/issues/4
// inputFile should be read from the cwd, not the path of the executable
swaggerData = fs.readFileSync(inputFile, 'utf8');
Converter.convert({
type: 'string',
Expand Down

0 comments on commit dd2e4b5

Please sign in to comment.