OpenAPITools / OpenAPITools/openapi-generator
When setting generateModels to false - the defaultAPI still looks for them
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 26.8k
- Forks
- 7.7k
- PR merge metrics
- PR metrics pending
Description
I'm using the openapi-generator-maven-plugin version 3.3.4
I don't want to generate models - I want to use my source models which located in a seperate module in my project.
When I set generateModels to false, the defaultAPI that is being generated is still generated with the package that havn't been generated:
import org.openapitools.client.model.<REQUEST>;
Is there a way to specify what package to import in order to consume the model?
Thanks!
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the issue with openapi-generator-maven-plugin version 3.3.4, setting generateModels to false and examining the generated defaultAPI imports. Trace how the plugin chooses the model package, then verify that an external source-model package can be used without generating models and that the generated API no longer imports the absent default package.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java, openapi
- Domain
- api, tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100