swagger-api / swagger-api/swagger-codegen

SpringMVC: does not support regenerate code appropriately

Open
#2,260 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Enhancement: General help wanted Server: Spring
Dominant language
Mustache
Stars
17.8k
Forks
6k
PR merge metrics
No merged PRs in 30d

Description

The SpringMVN generator creates the API files with:

// do some magic
return new ResponseEntity(...);

It would be better to create a service delegate (just like the JAX-RS generator), so it would be easier to regenerate the code.

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 comparing the SpringMVC generator's generated API files with the service-delegate structure produced by the JAX-RS generator. Trace how the SpringMVC generator creates its API files and determine the delegate structure needed to make regeneration easier; done means the generated code follows that service-delegate approach.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, spring
Domain
backend, tooling
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 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.