guardrail-dev / guardrail-dev/guardrail

For better composability it could be good to have generated functions as values

Open
#1,715 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Scala
Stars
541
Forks
138
PR merge metrics
No merged PRs in 30d

Description

Scala 3 have built in mechanism to drive type classes from case classes. Also, Scala 3 can apply FunctorK to case class fields.
It could be cool to be able transform generated types with approaches I mentioned above.
Would you be interested in PR, which add ability to generate Client not as class with methods, but as case class with fields?

Contributor guide

Open the contributing guide

Research direction

Start by reviewing Guardrail's Scala client-generation path and how generated Client methods are represented; the issue names no files or tests. Define the desired Scala 3 case-class client shape and verify that generated clients expose fields usable for type-class derivation and FunctorK, with coverage for the generated output.

Written by the indexing model from the issue text.

Assessment

Tech stack
scala
Domain
api, 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.