swagger-api / swagger-api/swagger-codegen
SpringBoot Server Stub Generation Uses SpringBoot V1.5.9 (Would Like to Use V2.0.0)
Nobody has claimed this yet.
- Dominant language
- Mustache
- Stars
- 17.8k
- Forks
- 6k
- PR merge metrics
- No merged PRs in 30d
Description
Specify SpringBoot Version in Server Stub Generation
I would like to use SpringBoot V2.0.0 and by default it is using V1.5.9.
Swagger-codegen version
I am using the swagger-codegen V2.3.1
Command line used for generation
java -jar modules/swagger-codegen-cli/target/swagger-codegen-cli.jar generate
-i http://petstore.swagger.io/v2/swagger.json
-l spring
-o samples/server/petstore/springboot
Steps to reproduce
Use the command line to generate a server stub with the command above.
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 with the modules/swagger-codegen-cli/target/swagger-codegen-cli.jar generate entry point and the -l spring server generator used by the reported command. Trace how the generated Spring Boot version is selected and identify the related generator templates or configuration. Done means generation can use Spring Boot 2.0.0 instead of being fixed to 1.5.9, with the command behavior verified.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java, spring-boot
- Domain
- api, backend
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100