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
AnyVal, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. PureconfigAutoDerive
  2. AnyVal
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new PureconfigAutoDerive(value: ConfigReader[A])

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    Any
  2. final def ##: Int
    Definition Classes
    Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def getClass(): Class[_ <: AnyVal]
    Definition Classes
    AnyVal → Any
  6. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  7. def toString(): String
    Definition Classes
    Any
  8. val value: ConfigReader[A]

Inherited from AnyVal

Inherited from Any

Ungrouped