OpenAPITools / OpenAPITools/openapi-generator

[kotlin] disable generation of org.openapitools.client.infrastructure

Open
#6,455 15 comments 8 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.