OpenAPITools / OpenAPITools/openapi-generator
[REQ] CodegenModelFactory no longer supports different models
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 26.8k
- Forks
- 7.7k
- PR merge metrics
- PR metrics pending
Description
In previous versions of the code generator you could pass through the types of classes that you wanted to use for creating code in the generator using the CodegenModelFactory. We have extended the spring classes to generate a custom server, but this requires logic not available in the default code. Currently it looks like we are limited to CodegenModelType.
Describe the solution you'd like
Ideally the previous implementation to be re-implemented.
Describe alternatives you've considered
Is there a work around that I am not aware of (I couldn't find anything in the documentation)
Additional context
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 CodegenModelFactory and CodegenModelType in the generator, then compare their current behavior with the previous implementation referenced in the issue. Determine how custom model classes were passed through before and verify that Spring extensions can use custom server-generation logic without being limited to CodegenModelType.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java, spring
- Domain
- tooling
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100