OpenAPITools / OpenAPITools/openapi-generator

[REQ] CodegenModelFactory no longer supports different models

Open
#4,814 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Enhancement: Feature
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

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 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.