Skip to content

Commit e8fe763

Browse files
authored
Document Fastavro tuple notation for unions (#1105, @slominskir)
* Document Fastavro tuple notation for unions Fixes: #656
1 parent 23b4142 commit e8fe763

File tree

1 file changed

+5
-0
lines changed
  • src/confluent_kafka/schema_registry

1 file changed

+5
-0
lines changed

src/confluent_kafka/schema_registry/avro.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,11 @@ class AvroSerializer(Serializer):
128128
129129
See ``avro_producer.py`` in the examples directory for example usage.
130130
131+
Note:
132+
Tuple notation can be used to determine which branch of an ambiguous union to take.
133+
134+
See `fastavro notation <https://fastavro.readthedocs.io/en/latest/writer.html#using-the-tuple-notation-to-specify-which-branch-of-a-union-to-take>`_
135+
131136
Args:
132137
schema_registry_client (SchemaRegistryClient): Schema Registry client instance.
133138

0 commit comments

Comments
 (0)