Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

openapi-generator-cli download 5.3.0 every time making it slow to run

Open
#619 4 comments 4 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

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

Research direction

Start from the openapi-generator-cli generate entry point used by the yarn generate task and trace how version 5.3.0 is downloaded. Check the package's download or cache handling and existing tests, if present. Done means repeated runs no longer download 5.3.0 while generation still succeeds.

Written by the indexing model from the issue text.

Description

In my project, we have the following npm task defined:

"generate": "openapi-generator-cli generate -i ../../../specs/openapi.yaml -g typescript-fetch -o src/api --additional-properties=typescriptThreePlus=true"

Whenever I run the yarn generate command, the following lines get printed to console:

Download 5.3.0 ...
Downloaded 5.3.0

This happens every time I run yarn generate. This downloading takes almost 30 seconds to run -- which is a long time. So, I wanted to make this task skip downloading. How do I do that?

Dominant language
TypeScript
Stars
2k
Forks
208
Avg merge
9h 35m
Merged PRs (30d)
3

Getting set up

We have not checked this project's setup files yet. Start from its README, and see our first-contribution guide for the general steps.

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.

More from OpenAPITools/openapi-generator-cli

All issues in OpenAPITools/openapi-generator-cli

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.