swagger-api / swagger-api/swagger-codegen

Create language-specified base class

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

Nobody has claimed this yet.

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

Description

Description

As the awesome Swagger Codegen community adds more generators (e.g clients, servers) to Swagger Codegen, we want to refactor some generators to create language-specific base class so as to reuse the code that are common to generators for the same langauges. Here are a few examples

C++
C#
Java
Typescript

Here is a list to track progress:

Swagger-codegen version

Latest master

Suggest a Fix/Enhancement

If anyone wants to work on the base class creation, please reply to let us know.

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

Review the existing language classes under modules/swagger-codegen/src/main/java/io/swagger/codegen/languages/, especially AbstractCppCodegen.java, AbstractCSharpCodegen.java, AbstractJavaCodegen.java, and AbstractTypeScriptClientCodegen.java. Choose an unchecked language from the issue, compare its generators with the existing base classes, and verify that the shared base class is used consistently and the checklist can be updated.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
devtools
Issue type
Refactor
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.