OpenAPITools / OpenAPITools/openapi-generator

[BUG] Not all files are regenerated on cli-build

Open
#4,075 6 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Issue: Bug
Dominant language
Java
Stars
26.8k
Forks
7.7k
PR merge metrics
PR metrics pending

Description

Quite a few clients like CSharp, Typescript and Java-Vertx do not regenerate test files if those were already generated. Those files which are not regenerated are not contained by openapi ignore. This results in many tests which are out of date in samples/ as well in all projects generated and updated by openapi-generator-cli. Another problem is that a project can be broken which is not covered by the integration tests since the build servers are testing with outdated test files.

Fix:

Do not skip files on generation except those which are blocked by openapi-ignore.

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 with the cli-build generation path and the handling of openapi-ignore, then reproduce the issue using already generated client test files in samples/. Done means every generated file is regenerated unless it is excluded by openapi-ignore, so generated projects and integration coverage use current tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
build-system, cli
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 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.