openapi-generator
openapi-generator copied to clipboard
Code Generation Fails with `x-internal: true` in OpenAPI Spec Using openapi-generator-maven-plugin Version 7.5.0
Description:
When using the x-internal: true extension in our OpenAPI specification, we encountered an issue with the latest version of the openapi-generator-maven-plugin (version 7.5.0). The code generation process fails entirely, and no code is generated. This issue is not present in earlier versions, specifically 7.2.0 and 7.1.0, where the code generation works as expected with x-internal: true.
Steps to Reproduce:
- Add
x-internal: trueto any operation or schema within the OpenAPI spec. - Use
openapi-generator-maven-pluginversion 7.5.0 to generate code. - Observe that the code generation process fails.
Expected Behavior:
The code generation should succeed with version 7.5.0, just as it does with versions 7.2.0 and 7.1.0, when using the
x-internal: trueextension. Actual Behavior: The code generation fails, and no output is generated. Environment:
-
openapi-generator-maven-pluginversion: 7.5.0 - OpenAPI Spec version: 7.2.0
- Java version: 17
- maven-compiler-plugin: 3.10.1
Additional Information:
This issue seems specific to the
x-internal: trueextension, as removing or not using it in the spec results in successful code generation. Please investigate this regression as it disrupts our code generation process, which relies heavily on this extension.