swagger-api / swagger-api/swagger-codegen
[Haskell] Refactor generator to create separate client, server generator
Nobody has claimed this yet.
- 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
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 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