Table of Contents

Enum TombstoneBehavior

Namespace
AvroSharp.Confluent
Assembly
AvroSharp.Confluent.dll

How a serializer or deserializer treats tombstones: messages with no body (avro.serializer.tombstone.behavior and avro.deserializer.tombstone.behavior, AvroSharp's own keys).

public enum TombstoneBehavior

Fields

None = 0

Confluent's behavior, the default. A null value (a null AvroValue too, unless the schema is "null") is written as a tombstone, and reading a tombstone into a value type throws.

Strict = 1

A tombstone can't be confused with a value. When the serializer or deserializer is created, the type must be able to hold null (a reference type, Nullable<T> or AvroValue), and the schema must not hold null (the schema "null", or a union with a "null" branch); the deserializer checks each writer's schema too. Keys have no tombstones: a null key, or a key with no body, throws.