swagger-api / swagger-api/swagger-codegen
Custom Server Stub for Spring Boot using swagger-codegen
Nobody has claimed this yet.
- Dominant language
- Mustache
- Stars
- 17.8k
- Forks
- 6k
- PR merge metrics
- No merged PRs in 30d
Description
Description
I want to use swagger-codegen from command line to generate code based on the specification created by Swagger ui.
I am looking to customize the generator used for Spring Boot because we feel the project structure and other artifacts should be customized for our project requirements.
But, I do not see any options for customizing an existing generator used for Spring Boot nor on how I can create a new code generator for a language in my case Spring Boot.
I only see the link to the wiki page on how to use a Server stub generator for different languages. I want to know if and how I can create a custom Server Stub for Spring Boot or for that matter any language.
Also, I see another link to create own codegen modules.
Does this step apply to Server Stubs too or is there a different process to create own Server Stubs.
Swagger-codegen version
I am using swagger-codegen-cli-2.2.1.
Can you please let me know if that is possible and if so how I can achieve that.
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 linked Server stub generator HOWTO and the README section on making your own codegen modules, then compare their guidance with the Spring Boot generator used by swagger-codegen-cli-2.2.1. Done means documenting whether the module process applies to server stubs and giving a clear customization path, if one exists.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- spring-boot
- Domain
- tooling
- Issue type
- Documentation
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100