Table of Contents

Enum JsonUnionBranchNames

Namespace
AvroSharp.Generic
Assembly
AvroSharp.dll

How GenericDatumJsonWriter labels a union value's branch.

public enum JsonUnionBranchNames

Fields

Full = 0

A named type by its full name, {"com.acme.Card": {...}}, as the specification says. Every Avro JSON reader reads it.

Simple = 1

A named type by its name without the namespace, {"Card": {...}}, as Apache Avro Java's JsonEncoder.setIncludeNamespace(false) writes it. A branch keeps its full name when its simple name would be ambiguous: when another branch has the same simple name, or another branch's label is that name. GenericDatumJsonReader reads this form; Java's JsonDecoder and Apache.Avro C# do not.

See Also