Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] [JAVA] AbstractOpenApiSchema class generated even if generateModels is set to false #16257

Open
4 of 6 tasks
SimoneGiusso opened this issue Aug 4, 2023 · 0 comments · May be fixed by #18856
Open
4 of 6 tasks

Comments

@SimoneGiusso
Copy link

SimoneGiusso commented Aug 4, 2023

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

I want to skip the generation of the model and for this I set:

<properties>
    <openapi.generator.maven.plugin.generateModels>false</openapi.generator.maven.plugin.generateModels>
</properties>

setting just <generateModels>false</generateModels> doesn't work due to this open issue I guess. Anyway the model is not generated indeed but under generated-docs/orgs/mode/ there is still something inside: the AbstractOpenApiSchema class (which doesn't not compile due to this other issue.

openapi-generator version

6.3.0

Suggest a fix

The desidered behaviour is to have the model directory completely empty (or not generated at all).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant