OpenAPITools / OpenAPITools/openapi-generator

[REQ][Typescript-Node] Replace request library with node http request

Open
#7,440 1 comment 1 reaction 0 assignees View on GitHub

A pull request for this has already been merged.

  • #7427 by @ksvirkou-hubspot — merged
Enhancement: Feature
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

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 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.