JsoniterCodecCompiler

smithy4s.json.JsoniterCodecCompiler
See theJsoniterCodecCompiler companion object
trait JsoniterCodecCompiler extends CachedSchemaCompiler[JsonCodec]

A codec compiler that produces jsoniter's JsonCodec

Attributes

Companion
object
Graph
Supertypes
trait CachedSchemaCompiler[JsonCodec]
class Object
trait Matchable
class Any

Members list

Type members

Inherited types

type Cache

Attributes

Inherited from:
CachedSchemaCompiler

Value members

Abstract methods

Changes the behaviour of Json encoders so that optional values are encoded as explicit Json null values.

Changes the behaviour of Json encoders so that optional values are encoded as explicit Json null values.

Defaults to false.

Attributes

Changes the behaviour of Json decoders so that they overlook null values in collections and maps. This behaviour has a performance overhead.

Changes the behaviour of Json decoders so that they overlook null values in collections and maps. This behaviour has a performance overhead.

Defaults to false

Attributes

def withHintMask(hintMask: HintMask): JsoniterCodecCompiler

Changes the hint mask with which the decoder works. Depending on the hint mask, some smithy traits may be overlooked during encoding/decoding. For instance, @jsonName.

Changes the hint mask with which the decoder works. Depending on the hint mask, some smithy traits may be overlooked during encoding/decoding. For instance, @jsonName.

Attributes

Changes the behaviour of Json decoders so that they can parse Infinity/NaN values. This behaviour has a performance overhead.

Changes the behaviour of Json decoders so that they can parse Infinity/NaN values. This behaviour has a performance overhead.

Attributes

Changes the behaviour of Json decoders so that the preserve the ordering of maps.

Changes the behaviour of Json decoders so that the preserve the ordering of maps.

Attributes

Changes the behaviour of the decoders so that they fail after a certain number of elements when decoding arrays and maps. This allows to protect against some DDOS attacks.

Changes the behaviour of the decoders so that they fail after a certain number of elements when decoding arrays and maps. This allows to protect against some DDOS attacks.

Defaults to 1024.

Attributes

Inherited methods

final def contramapSchema(fk: PolyFunction[Schema, Schema]): CachedSchemaCompiler[F]

Attributes

Inherited from:
CachedSchemaCompiler
def createCache(): Cache

Attributes

Inherited from:
CachedSchemaCompiler
def fromSchema[A](schema: Schema[A], cache: Cache): F[A]

Attributes

Inherited from:
CachedSchemaCompiler
def fromSchema[A](schema: Schema[A]): F[A]

Attributes

Inherited from:
CachedSchemaCompiler
final def mapK[F0[x], G[_]](fk: PolyFunction[F0, G]): CachedSchemaCompiler[G]

Attributes

Inherited from:
CachedSchemaCompiler