swagger-api / swagger-api/swagger-codegen
code gen is generating interfaces instead of classes
Nobody has claimed this yet.
- Dominant language
- Mustache
- Stars
- 17.8k
- Forks
- 6k
- PR merge metrics
- No merged PRs in 30d
Description
Description
while generating client SDK for my application, it is generating interfaces instead of classes.
Swagger-codegen version
2.3.1
Swagger declaration file content or url
Command line used for generation
java -jar 'C:\swagger-codegen-cli-2.3.1.jar' generate -i ./.swagger-api.json -l typescript-fetch -o ../../msp/msp-api-client -DsupportsES6=true -DnpmName=@hpe/msp-api-client -DnpmRepository=https://registry.npmjs.itcs.hpecorp.net -Dnp mVersion=2.0.0
Steps to reproduce
Related issues/PRs
Suggest a fix/enhancement
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the typescript-fetch generator invoked by swagger-codegen-cli 2.3.1 and inspect the generation using ./.swagger-api.json and the command shown in the issue. Reproduce the output and compare the generated interfaces with the expected classes; done means the same command generates classes for the reported client.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java, typescript
- Domain
- devtools, tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100