Error
at Object.<anonymous> (apib2swagger/node_modules/json-schema-to-openapi-schema/index.js:8:30)
at Module._compile (node:internal/modules/cjs/loader:1255:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1309:10)
at Module.load (node:internal/modules/cjs/loader:1113:32)
at Module._load (node:internal/modules/cjs/loader:960:12)
at Module.require (node:internal/modules/cjs/loader:1137:19)
at require (node:internal/modules/helpers:121:18)
at Object.<anonymous> (apib2swagger/src/requests.js:4:19)
at Module._compile (node:internal/modules/cjs/loader:1255:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1309:10) {
name: 'InvalidTypeError',
message: 'Type "extend" is not a valid type'
}
I'm trying to convert an API Blueprint document to OpenAPI but it fails with the following error:
Type "extend" is not a valid type
.Here's a minmal test case of an API Blueprint document that fails:
I used the following command to run the tool:
The full output of running the above command is: