From dd2e4b515a5547d46c64d6ab7a6450263999a8ca Mon Sep 17 00:00:00 2001 From: abhijitkane Date: Mon, 17 Dec 2018 14:29:34 +0530 Subject: [PATCH] Fix explanation for https://github.com/postmanlabs/openapi-to-postman/issues/4 --- bin/openapi2postmanv2.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bin/openapi2postmanv2.js b/bin/openapi2postmanv2.js index 5477e504e..d27984c5b 100755 --- a/bin/openapi2postmanv2.js +++ b/bin/openapi2postmanv2.js @@ -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',