izumi.distage.config.codec.PureconfigAutoDerive
See thePureconfigAutoDerive companion object
Derive pureconfig.ConfigReader
for A and for its fields recursively with pureconfig-magnolia
This differs from just using pureconfig.module.magnolia.auto.reader.exportReader by using different configuration, defined in PureconfigInstances, specifically:
- Field name remapping is disabled,
camelCase
fields will remain camelCase, notkebab-case
- Sealed traits are rendered as in
circe
, using a wrapper object with a single field, instead of using atype
field. Example:
sealed trait AorB
final case class A(a: Int) extends AorB
final case class B(b: String) extends AorB
final case class Config(values: List[AorB])
in config:
config {
values = [
{ A { a = 123 } },
{ B { b = cba } }
]
}
Attributes
- Companion:
- object
- Graph
- Supertypes
- class AnyValtrait Matchableclass Any