swagger-api / swagger-api/swagger-codegen
SpringMVC: does not support regenerate code appropriately
Open
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
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 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