swagger-api / swagger-api/swagger-codegen
Upgrade typescript-axios to axios@^1
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
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-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