hi, we are getting the error below after generating the api:
.api/apis/sivocom/index.ts:13:29 - error TS2345: Argument of type 'import("/[redacted]/.api/apis/sivocom/node_modules/oas/dist/index")' is not assignable to parameter of type 'import("/[redacted]/.api/apis/sivocom/node_modules/api/node_modules/oas/dist/index").default'.
Property 'promises' is protected but type 'Oas' is not a class derived from 'Oas'.
13 this.core = new APICore(this.spec, 'sivocom/1.0 (api/6.1.3)');
it seems to be related to incompatible versions of oas in package.json. the main package.json that is generated has this:
"dependencies": {
"api": "^6.1.3",
"json-schema-to-ts": "^2.8.0-beta.0",
"oas": "^32.0.0"
}
while the package.json for @readme/oas-to-har has the following:
"dependencies": {
"@readme/data-urls": "^1.0.1",
"@readme/oas-extensions": "^17.0.1",
"oas": "^20.5.0",
"qs": "^6.10.5",
"remove-undefined-objects": "^2.0.2"
},
is it possible to configure the dependencies so they resolve oas to the same version? thanks.
hi, we are getting the error below after generating the api:
it seems to be related to incompatible versions of
oasinpackage.json. the mainpackage.jsonthat is generated has this:while the
package.jsonfor@readme/oas-to-harhas the following:is it possible to configure the dependencies so they resolve
oasto the same version? thanks.