swagger-api / swagger-api/swagger-codegen

Upgrade typescript-axios to axios@^1

Open
#12,195 0 comments 2 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

The current generated client is using an outdated version of axios. A new version axios@v1 should be used.

  "dependencies": {
    "axios": "^0.21.1"
  },
Swagger-codegen version

version 3.0.43

Command line used for generation

swagger-codegen generate -l typescript-axios -i path/to/swagger.json -o MyApiClients/my-api-client-ts

Related issues/PRs

Similar to this issue:
https://github.com/OpenAPITools/openapi-generator/issues/14517

Thanks

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-axios generator entry point and reproduce the issue using the documented swagger-codegen command. Inspect the generated package dependency currently shown as axios ^0.21.1. Done means generated clients declare axios ^1 and generation completes successfully.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
tooling
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.