OpenAPITools / OpenAPITools/openapi-generator
[REQ] [Kotlin] Make "process<Library>Library" methods protected in Kotlin codegen
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 26.8k
- Forks
- 7.7k
- PR merge metrics
- PR metrics pending
Description
Is your feature request related to a problem? Please describe.
These methods should not be private--in my use case I want to customize the behavior of the multiplatform library, but because they are not protected I cannot do that from a subclass of KotlinClientCodegen.
Describe the solution you'd like
Make these methods protected.
Describe alternatives you've considered
There is no other way to customize these methods. The only workaround is to customize the state of the code generator from the subclass' constructor after calling super().
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 locating KotlinClientCodegen and its processLibrary methods in the Kotlin code-generation implementation. Review their current visibility and make the requested methods protected; done means subclasses can customize them while existing generation behavior remains unchanged.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- kotlin
- Domain
- tooling
- Issue type
- Feature
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 35/100