OpenAPI Generator allows generation of API client libraries (SDK generation), server stubs, documentation and configuration automatically given an OpenAPI Spec (v2, v3)
Unable to generate typescript client due to the following Error:
model/NotificationEvents.ts:16:40 - error TS2694: Namespace '../dist/otr-ts-client/model/models"' has no exported member 'List'.
Bug Report Checklist
Description
Error resolving $ref pointer "https://apitools.dev/swagger-parser/online/#/definitions/List". Token "List" does not exist.
Unable to generate typescript client due to the following Error: model/NotificationEvents.ts:16:40 - error TS2694: Namespace '../dist/otr-ts-client/model/models"' has no exported member 'List'.
The result type is.
openapi-generator version
openapi-generator-cli 4.3.1 commit : 003165c built : 2020-05-06T09:38:39Z
OpenAPI declaration file content or url
Command line used for generation
openapi-generator generate -i api/otr-service.json -g typescript-angularjs -o dist/otr-ts-client"
Steps to reproduce
After adding @types/angular as a dependency, I just ran the command below
tsc index.ts
Related issues/PRs
https://github.com/OpenAPITools/openapi-generator/issues/2336