openapi-generator icon indicating copy to clipboard operation
openapi-generator copied to clipboard

Code Generation Fails with `x-internal: true` in OpenAPI Spec Using openapi-generator-maven-plugin Version 7.5.0

Open maheshsalunkhe2510 opened this issue 1 year ago • 0 comments

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:

  1. Add x-internal: true to any operation or schema within the OpenAPI spec.
  2. Use openapi-generator-maven-plugin version 7.5.0 to generate code.
  3. 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: true extension. Actual Behavior: The code generation fails, and no output is generated. Environment:
  • openapi-generator-maven-plugin version: 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: true extension, 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.

maheshsalunkhe2510 avatar Aug 22 '24 08:08 maheshsalunkhe2510