Enum JsonUnionBranchNames
How GenericDatumJsonWriter labels a union value's branch.
public enum JsonUnionBranchNames
Fields
Full = 0A named type by its full name,
{"com.acme.Card": {...}}, as the specification says. Every Avro JSON reader reads it.Simple = 1A named type by its name without the namespace,
{"Card": {...}}, as Apache Avro Java'sJsonEncoder.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'sJsonDecoderand Apache.Avro C# do not.