OpenAPITools / OpenAPITools/openapi-generator

[BUG] Code generation failed without any more info when updating to v7.11.0

Open
#20,544 1 comment 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

Bug Report Checklist
  • Have you provided a full/minimal spec to reproduce the issue?
  • Have you validated the input using an OpenAPI validator (example)?
  • Have you tested with the latest master to confirm the issue still exists?
  • Have you searched for related issues/PRs?
  • What's the actual output vs expected output?
  • [Optional] Sponsorship to speed up the bug fix or feature request (example)
Description

Code generation works fine with v7.10.0, bumping to v7.11.0 fails with the following error:
`gradle clean build
executing gradlew instead of gradle

Task :openApiGenerate-sample FAILED

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':openApiGenerate-sample'.

Code generation failed.

  • Try:

Run with --stacktrace option to get the stack trace.
Run with --info or --debug option to get more log output.
Run with --scan to get full insights.
Get more help at https://help.gradle.org.

BUILD FAILED in 3s
5 actionable tasks: 4 executed, 1 from cache`

openapi-generator version

Happens with v7.11.0, going back to v7.10.0 works. Is a regression.

OpenAPI declaration file content or url

Because of the lacking error message, I have no idea what causes it, and cannot make a minimal example. Need help debugging.

Generation Details

Using the current working yaml's (using 3 separate yamls)

Steps to reproduce

Same as above

Related issues/PRs

No related issues

Suggest a fix

No known fixes

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 Gradle task openApiGenerate-sample and reproduce the failure using the reported three YAML files, comparing v7.10.0 with v7.11.0. Run gradle clean build with --stacktrace, --info, or --debug; done means identifying the regression and restoring a useful error message or successful generation.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, openapi
Domain
api, build-system
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.