devexperts / devexperts/swagger-codegen-ts

Controllers are generated with unused variable

Open
#102 7 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
80
Forks
17
PR merge metrics
No merged PRs in 30d

Description

After starting `generate` I receive an error in generated controllers.
The error is
![image](https://user-images.githubusercontent.com/19936650/74423347-6827a400-4e50-11ea-9549-de2830b42bb5.png)

`generate` function is same as `test1` in [tests](https://github.com/devexperts/swagger-codegen-ts/blob/master/test/index.ts)

Libs:
```
"fp-ts": "^2.4.4",
"io-ts": "^2.0.1",
"io-ts-reporters": "^1.0.0",
"io-ts-types": "^0.5.2",
"@devexperts/swagger-codegen-ts": "^2.0.0-alpha.17",
"@devexperts/utils": "^1.0.0-alpha.11",
```

System: win10

Also, I checked tests here and got the same result.

STR:
- clone project
- yarn install
- yarn test:run

![image](https://user-images.githubusercontent.com/19936650/74425629-4b8d6b00-4e54-11ea-8209-fe6ba2c89ea0.png)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.