final case class CodecConfig(explicitEmptyCollections: ExplicitConfig = JsonCodec.ExplicitConfig(), explicitNulls: ExplicitConfig = JsonCodec.ExplicitConfig(), discriminatorSettings: DiscriminatorSetting = JsonCodec.DiscriminatorSetting.default, fieldNameFormat: NameFormat = NameFormat.Identity, treatStreamsAsArrays: Boolean = false, rejectExtraFields: Boolean = false) extends Product with Serializable

Configuration for the JSON codec. The configurations are overruled by the annotations that configure the same behavior.

explicitEmptyCollections

whether to encode empty collections as [] or omit the field and decode the field when it is missing as an empty collection or fail

explicitNulls

whether to encode empty Options as null or omit the field and decode the field when it is missing to None or fail

discriminatorSettings

set up how to handle discriminators

fieldNameFormat

format for the field names

treatStreamsAsArrays

whether to treat streams as arrays when encoding/decoding

rejectExtraFields

whether to reject extra fields during decoding

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. CodecConfig
  2. Serializable
  3. Product
  4. Equals
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new CodecConfig(explicitEmptyCollections: ExplicitConfig = JsonCodec.ExplicitConfig(), explicitNulls: ExplicitConfig = JsonCodec.ExplicitConfig(), discriminatorSettings: DiscriminatorSetting = JsonCodec.DiscriminatorSetting.default, fieldNameFormat: NameFormat = NameFormat.Identity, treatStreamsAsArrays: Boolean = false, rejectExtraFields: Boolean = false)

    explicitEmptyCollections

    whether to encode empty collections as [] or omit the field and decode the field when it is missing as an empty collection or fail

    explicitNulls

    whether to encode empty Options as null or omit the field and decode the field when it is missing to None or fail

    discriminatorSettings

    set up how to handle discriminators

    fieldNameFormat

    format for the field names

    treatStreamsAsArrays

    whether to treat streams as arrays when encoding/decoding

    rejectExtraFields

    whether to reject extra fields during decoding

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @IntrinsicCandidate() @native()
  6. val discriminatorSettings: DiscriminatorSetting
  7. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  8. val explicitEmptyCollections: ExplicitConfig
  9. val explicitNulls: ExplicitConfig
  10. val fieldNameFormat: NameFormat
  11. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate() @native()
  12. val ignoreEmptyCollections: Boolean
  13. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  14. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  15. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  16. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  17. def productElementNames: Iterator[String]
    Definition Classes
    Product
  18. val rejectExtraFields: Boolean
  19. def schemaConfig: Configuration
  20. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  21. val treatStreamsAsArrays: Boolean
  22. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  23. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  24. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

    (Since version 9)

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped