swagger-api / swagger-api/swagger-codegen

[typescript-axios] swagger-v3 not working with typescript-axios

Open
#12,092 2 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

I have previously used swagger v2 and swagger code gen v3.0.x.
to generate typescript-axios it works fine

But after I change toswagger v3 I can generate the code.
But I can't use npm run prepublishOnly command.
It seems that the acquired file is incomplete.

Swagger-codegen version

3.0.41

Swagger declaration file content or url

yml link

Command line used for generation
java -Xmx1024m -jar swagger-codegen-cli-3.0.36.jar generate -i http://localhost:8080/api/v3/api-docs  -l typescript-axios -o generate --additional-properties npmName=@xxxxx,npmVersion=0.0.59,private=false
Steps to reproduce

after complied done

cd generate 
npm i 
npm run prepublishOnly

result

ภาพ ##### Related issues/PRs

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

Reproduce with the provided OpenAPI v3 URL and the swagger-codegen 3.0.36 command, then enter the generated directory and run npm i followed by npm run prepublishOnly. Inspect the generated typescript-axios package and the command's error output; the work is done when the generated package is complete and prepublishOnly succeeds.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
api, tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.