Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • O openapi-generator
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 3,476
    • Issues 3,476
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 402
    • Merge requests 402
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • OpenAPI Tools
  • openapi-generator
  • Issues
  • #2902
Closed
Open
Issue created May 15, 2019 by Administrator@rootContributor

[REQ][Finch] Add Cats option to Finch server codegen

Created by: lbordowitz

Is your feature request related to a problem? Please describe.

In order to use the Scala library Cats, endpoint code generation for the Finch library is different. For example, while ordinary Finch usage defines an endpoint of the type Endpoint[io.circe.Json], we can also explicitly invoke the IO monad with Endpoint[cats.effect.IO, io.circe.Json] (full package names added for context, they would normally just be imported). The code within the endpoint would also look different.

Describe the solution you'd like

We should provide an option to allow an explicit cats.effect usage of Finch, for those users who have services and other downstream dependencies wrapped with cats-style code.

Describe alternatives you've considered

I've considered making a private library, or creating a new public generator. An option with the existing Finch code generator would be preferable.

Additional context

For example openapi-codegen generate -i [file] -l finch --cats -o /tmp/test/

I'm not sure whether this is available for v2.

Assignee
Assign to
Time tracking