OpenAPITools / OpenAPITools/openapi-generator
[kotlin] disable generation of org.openapitools.client.infrastructure
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 26.8k
- Forks
- 7.7k
- PR merge metrics
- PR metrics pending
Description
Description
I want to generate the model and the api, but compiling fails when compiling the generated files in org.openapitools.client.infrastructure.
These classes are not needed so I would like to disable generating them in the first place
openapi-generator version
gradle plugin version 4.3.0
Command line used for generation
openApiGenerate {
generatorName.set("kotlin")
inputSpec.set("$buildDir/openapi/api.yml)
outputDir.set("$buildDir/generated/openapi")
apiPackage.set("my.api")
modelPackage.set("my.model")
}
Suggest a fix/enhancement
Adding another configuration property to be able to disable the generation of the content of ``org.openapitools.client.infrastructure`
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 with the Kotlin generator entry point and the Gradle openApiGenerate configuration described in the issue, then trace how generation options control the infrastructure package. The issue is done when a configuration option can omit org.openapitools.client.infrastructure while still generating the requested models and APIs, with existing Kotlin generation remaining unaffected.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- kotlin
- Domain
- tooling
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100