swagger-api / swagger-api/swagger-codegen

code gen is generating interfaces instead of classes

Open
#10,842 0 comments 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.