swagger-api / swagger-api/swagger-codegen

Custom Server Stub for Spring Boot using swagger-codegen

Open
#6,943 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

General: Question Server: Spring
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

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.