swagger-api / swagger-api/swagger-codegen

[Haskell] Refactor generator to create separate client, server generator

Open
#5,100 9 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Description

Currently, Haskell generator (HaskellServantCodegen.java) generates both client and server code. We want to refactor HaskellServantCodegen.java into the following:

HaskellServantCodegen.java - for server
HaskellClientCodegen.java - for client
AbstractHaskellCodegen.java - abstract class for client/server generator

The goal is to make Haskell generator more consistent with other generators (as no other generator output both client and server code at the same time)

Swagger-codegen version

Latest master

Suggest a Fix

If anyone wants to contribute the enhancement, 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

Start with HaskellServantCodegen.java and compare how other generators separate client and server output. Refactor the Haskell generator into HaskellServantCodegen.java for server generation, HaskellClientCodegen.java for client generation, and AbstractHaskellCodegen.java for shared behavior; done means the Haskell generator no longer produces both outputs from one class.

Written by the indexing model from the issue text.

Assessment

Tech stack
haskell, java
Domain
tooling
Issue type
Refactor
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.