ccadllc/cedi-config

Derivation of nested case classes

anakos opened this issue · 3 comments

Hi-

At present, this library does not seem to support full derivation of nested case classes: i.e. - given the following set of case classes

final case class Both(left: Wibble, right: That)
final case class Wibble(value: Int)
final case class Wobble(value: List[String])

then simply calling derived[Both] without explicitly defining implicit values for both derived[Wibble] and derived[Wobble], will yield compilation errors indicating that a ConfigParser needs to be in scope for each component type x of Both.

Would you welcome a PR supporting the ability to fully auto-derive nested case classes?

Thanks
Alex

Hi Michael-

Great, thanks. I have sent you a PM requesting the CLA - please let me know if you haven't received.

Thanks and happy new year to you as well!
Alex

Fixed by #3. Thanks!