Error "Sorry, this module only supports OpenAPI definitions" on valid open api docs
Closed this issue · 1 comments
tonyxiao commented
> yarn add api@5.0.0-beta.3
> yarn api install https://raw.githubusercontent.com/Yodlee/OpenAPI/main/swagger.yaml
yarn run v1.22.19
$ ./node_modules/.bin/api install https://raw.githubusercontent.com/Yodlee/OpenAPI/main/swagger.yaml
✔ What language would you like to generate an SDK for? › TypeScript
✔ What would you like to identify this API as? This will be how you import the SDK. (e.g. entering `petstore` would result in `@api/petstore`) … yodlee
✖ Fetching your API
Sorry, this module only supports OpenAPI definitions.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
This is the open api def - https://raw.githubusercontent.com/Yodlee/OpenAPI/main/swagger.yaml. It works fine with other tools so not sure why it is not supported
erunion commented
Hey, that file is a Swagger 2.0 definition. We currently only support OpenAPI 3.0 and OpenAPI 3.1 with this tool.