sealed trait Configuration extends AnyRef
Configuration allowing customisation of the JSON produced when encoding, or expected when decoding. Can be passed to the JsonCodec annotation to allow customisation of derivation.
The configuration also determines if either *both* encoder and decoder are derived - or if only one of them will be.
- Alphabetic
- By Inheritance
- Configuration
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Type Members
- abstract type Config <: Configuration
Abstract Value Members
- abstract def applyDiscriminator(discriminator: Option[String]): Config
- Attributes
- protected
- abstract def discriminator: Option[String]
- abstract def getA(transformMemberNames: (String) => String): Config
- Attributes
- protected
- abstract def getC(transformConstructorNames: (String) => String): Config
- Attributes
- protected
- abstract def transformConstructorNames: (String) => String
Transforms the value of any constructor names in the JSON, allowing, for example, formatting or case changes
- abstract def transformMemberNames: (String) => String
Transforms the names of type members in the JSON, allowing, for example, formatting or case changes
- abstract def useDefaults: Boolean
Concrete Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def withDiscriminator(name: String): Config
- final def withKebabCaseConstructorNames: Config
Creates a configuration which produces kebab cased constructor names
- final def withKebabCaseMemberNames: Config
Creates a configuration which produces kebab cased member names
- final def withSnakeCaseConstructorNames: Config
Creates a configuration which produces snake cased constructor names
- final def withSnakeCaseMemberNames: Config
Creates a configuration which produces snake cased member names