swagger-api / swagger-api/swagger-codegen

[Haskell] Add Scotty server generator

Open
#6,153 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Description

As discussed in https://github.com/swagger-api/swagger-codegen/issues/6147, we want to add a Scotty server generator.

Ideally we want to create an abstract base class "AbstractHaskellCodegen.java" based on HaskellServantCodegen.java to start with so as to make all Haskell generators (client, server) more consistent and easier to maintain.

Swagger-codegen version

Latest master

Suggest a fix/enhancement

If anyone wants to contribute the new generator, please reply to let us know.

cc @kamyar1979 @algas @mandrean

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 by reading HaskellServantCodegen.java and the discussion in issue 6147 to understand the proposed AbstractHaskellCodegen.java structure. Then investigate how existing server generators are registered and templated for a Scotty implementation. Done means a working Haskell Scotty server generator with the shared abstraction agreed upon in the project.

Written by the indexing model from the issue text.

Assessment

Tech stack
haskell, java
Domain
backend, tooling
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.