final class PureconfigAutoDerive[A] extends AnyVal
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:
1. Field name remapping is disabled, camelCase
fields will remain camelCase, not kebab-case
2. Sealed traits are rendered as in circe
, using a wrapper object with a single field, instead of using a type
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 } }
]
}
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- PureconfigAutoDerive
- AnyVal
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Instance Constructors
- new PureconfigAutoDerive(value: ConfigReader[A])
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- Any
- final def ##: Int
- Definition Classes
- Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def getClass(): Class[_ <: AnyVal]
- Definition Classes
- AnyVal → Any
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def toString(): String
- Definition Classes
- Any
- val value: ConfigReader[A]