AvroNullDefault

vulcan.generic.AvroNullDefault
See theAvroNullDefault companion object
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.

Attributes

Companion
object
Graph
Supertypes
trait StaticAnnotation
class Annotation
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

final override def toString: String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Attributes

Returns

a string representation of the object.

Definition Classes
Any

Concrete fields

final val enabled: Boolean