guardrail-dev / guardrail-dev/guardrail
Feature request: allow opting-in to step builders for Java
Open
core
help wanted
java
- Dominant language
- Scala
- Stars
- 541
- Forks
- 138
- PR merge metrics
- No merged PRs in 30d
Description
Hi, I would like to be able to opt-in to using step builders when generating Java code. Currently, mandatory parameters are passed directly to the builder’s constructor; however, there’s another pattern—step builders—that could be used instead, wherein mandatory parameters must be provided one by one, ultimately yielding an interface through which the final optional parameters can be provided. The pros/cons of each approach have been discussed elsewhere, but it would be interesting if Guardrail allowed generating either, ideally through some configuration option.
Contributor guide
Assessment
This issue has not been assessed yet.