AvroNullDefault

final class AvroNullDefault(val enabled: Boolean) extends StaticAnnotation

Annotation which can be used to enable/disable explicit default null values for nullable fields in derived schemas.

The annotation can be used in the following situations.

  • Annotate a case class to enable/disable explicit default null values in the schema for all nullable fields when using Codec.derive from the generic module.
  • Annotate a case class parameter to enable/disable explicit default null value in the schema for this specific nullable field when using Codec.derive from the generic module.

Parameter annotation takes precedence over case class one when both are used.

Companion:
object
trait StaticAnnotation
class Annotation
class Object
trait Matchable
class Any

Value members

Concrete methods

final override def toString: String
Definition Classes
Any

Concrete fields

final val enabled: Boolean