zio.http.codec.CodecConfig
See theCodecConfig companion object
final case class CodecConfig(explicitEmptyCollections: ExplicitConfig = ..., explicitNulls: ExplicitConfig = ..., discriminatorSettings: DiscriminatorSetting = ..., fieldNameFormat: NameFormat = ..., treatStreamsAsArrays: Boolean = ..., rejectExtraFields: Boolean = ...)
Configuration for the JSON codec. The configurations are overruled by the annotations that configure the same behavior.
Value parameters
- discriminatorSettings
-
set up how to handle discriminators
- 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
nullor omit the field and decode the field when it is missing to None or fail - fieldNameFormat
-
format for the field names
- rejectExtraFields
-
whether to reject extra fields during decoding
- treatStreamsAsArrays
-
whether to treat streams as arrays when encoding/decoding
Attributes
- Companion
- object
- Graph
-
- Supertypes
Members list
In this article