configReaderDerivation
Attributes
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
Members list
Type members
Classlikes
Attributes
- Supertypes
-
trait ConfigReader[A]class Objecttrait Matchableclass Any
A failure reason given when a provided coproduct option is invalid. This likely signals a bug in a CoproductHint implementation, since the provided option isn't a valid one for the CoproductHint's type.
A failure reason given when a provided coproduct option is invalid. This likely signals a bug in a CoproductHint implementation, since the provided option isn't a valid one for the CoproductHint's type.
Value parameters
- option
-
the coproduct option that is invalid
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait FailureReasonclass Objecttrait Matchableclass AnyShow all
A failure reason given when a valid option for a coproduct cannot be found.
A failure reason given when a valid option for a coproduct cannot be found.
Value parameters
- optionFailures
-
the failures produced when attempting to read coproduct options
- value
-
the ConfigValue that was unable to be mapped to a coproduct option
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait FailureReasonclass Objecttrait Matchableclass AnyShow all
Attributes
- Supertypes
-
trait ConfigReader[A]class Objecttrait Matchableclass Any
Attributes
- Supertypes
-
trait ConfigReader[A]class Objecttrait Matchableclass Any
Value members
Concrete methods
Override pureconfig's default kebab-case fields – force CamelCase product-hint
Override pureconfig's default kebab-case fields – force CamelCase product-hint
Attributes
Override pureconfig's default type field type discriminator for sealed traits. Instead, use circe-like format with a single-key object. Example:
Override pureconfig's default type field type discriminator for sealed traits. Instead, use circe-like format with a single-key object. 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 = 5 } }, { B { b = cba } }]
}