swagger-api / swagger-api/swagger-codegen
Create language-specified base class
Nobody has claimed this yet.
- 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
Here is a list to track progress:
- Android
- Bash
- C++
- C#
- Clojure
- Dart
- Elixir
- Eiffel
- Flash
- Go (https://github.com/swagger-api/swagger-codegen/pull/7197)
- Groovy
- Javascript
- Java
- ObjC
- Perl
- PHP
- PowerShell
- Python
- Ruby
- Swift
- Scala
- TypeScript
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
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
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