OpenAPITools / OpenAPITools/openapi-generator
[REQ][Typescript-Node] Replace request library with node http request
A pull request for this has already been merged.
- #7427 by @ksvirkou-hubspot — merged
- Dominant language
- Java
- Stars
- 26.8k
- Forks
- 7.7k
- PR merge metrics
- PR metrics pending
Description
Is your feature request related to a problem? Please describe.
typescript-node relies on request which is no longer supported. Other options from axios and fetch are already provided, however the generator does not provide a pure node version as the generator name mentions. In order to provide an effective alternative, the template should be adjusted to use the node HTTP client
Describe alternatives you've considered
Devs could be directed to just use axios or fetch but those might not be in the preffered stack.
Additional context
Happy to make the change here if no one picks it up!
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 by locating the typescript-node generator template and compare its current request usage with the already provided axios and fetch alternatives. Check whether the linked pull request or its merged changes already cover this request; the issue is done when the generator uses Node's HTTP client instead of the unsupported request library.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- node.js, typescript
- Domain
- api
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100