Cannot read property 'length' of undefined. api_blueprint to swagger_2
See original GitHub issueIm getting the following error while trying to convert from api_blueprint to swagger_2
Fatal TypeError: Cannot read property 'length' of undefined at jsonSchemaFromMSON (/usr/local/lib/node_modules/api-spec-converter/node_modules/apib2swagger/index.js:217:37) at /usr/local/lib/node_modules/api-spec-converter/node_modules/apib2swagger/index.js:38:67 at Array.forEach (<anonymous>) at /usr/local/lib/node_modules/api-spec-converter/node_modules/apib2swagger/index.js:31:26 at Array.forEach (<anonymous>) at Object.module.exports.convertParsed (/usr/local/lib/node_modules/api-spec-converter/node_modules/apib2swagger/index.js:28:8) at converters.swagger_2.Promise.method.apibp (/usr/local/lib/node_modules/api-spec-converter/lib/formats/api_blueprint.js:16:24) at tryCatcher (/usr/local/lib/node_modules/api-spec-converter/node_modules/bluebird/js/release/util.js:16:23) at /usr/local/lib/node_modules/api-spec-converter/node_modules/bluebird/js/release/method.js:15:34 at Promise.try (/usr/local/lib/node_modules/api-spec-converter/lib/base_format.js:162:12) at tryCatcher (/usr/local/lib/node_modules/api-spec-converter/node_modules/bluebird/js/release/util.js:16:23) at Function.Promise.attempt.Promise.try (/usr/local/lib/node_modules/api-spec-converter/node_modules/bluebird/js/release/method.js:39:29) at module.exports.BaseFormat.convertTo (/usr/local/lib/node_modules/api-spec-converter/lib/base_format.js:154:21) at Converter.getSpec.then.fromSpec (/usr/local/lib/node_modules/api-spec-converter/index.js:33:32) at tryCatcher (/usr/local/lib/node_modules/api-spec-converter/node_modules/bluebird/js/release/util.js:16:23) at Promise._settlePromiseFromHandler (/usr/local/lib/node_modules/api-spec-converter/node_modules/bluebird/js/release/promise.js:512:31)
Issue Analytics
- State:
- Created 6 years ago
- Comments:10 (5 by maintainers)

Top Related StackOverflow Question
Sorry, the repository is not public as i thought.
Here is a gist:
https://gist.github.com/dobromir-bogatev/7ab8de885c1433764ba575dc9cf64a2b
Thanks for following up!