OpenAPITools / OpenAPITools/openapi-generator-cli

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.

Dominant language
TypeScript
Stars
2k
Forks
208
Avg merge
7h 12m
Merged PRs (30d)
6

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?

Contributor guide

No contributing guide indexed for this repository

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

Assessment

Tech stack
nodejs, typescript
Domain
cli, 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.