You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Azure subscription - [Create a free account][azure_sub]
39
-
*[Azure Schema Registry][schemaregistry_service]
39
+
*[Azure Schema Registry][schemaregistry_service] - [Here is the quickstart guide][quickstart_guide] to create a Schema Registry group using the Azure portal.
40
40
* Python 3.6 or later - [Install Python][python]
41
41
42
42
### Authenticate the client
@@ -83,7 +83,7 @@ content type with schema ID. Uses [SchemaRegistryClient][schemaregistry_client]
83
83
84
84
Support has been added to certain Azure Messaging SDK model classes for interoperability with the `AvroEncoder`. These models are subtypes of the `MessageType` protocol defined under the `azure.schemaregistry.encoder.avroencoder` namespace. Currently, the supported model classes are:
85
85
86
-
-`azure.eventhub.EventData` for `azure-eventhub==5.9.0b2`
86
+
-`azure.eventhub.EventData` for `azure-eventhub==5.9.0b3`
87
87
88
88
### Message format
89
89
@@ -99,7 +99,7 @@ If a message type that follows the MessageType protocol is provided to the encod
99
99
-`avro/binary` is the format indicator
100
100
-`<schema ID>` is the hexadecimal representation of GUID, same format and byte order as the string from the Schema Registry service.
101
101
102
-
If message type or callback function is not provided, and by default, the encoder will create the following dict:
102
+
If message type is not provided, and by default, the encoder will create the following dict:
@@ -114,7 +114,7 @@ The following sections provide several code snippets covering some of the most c
114
114
### Encoding
115
115
116
116
Use `AvroEncoder.encode` method to encode dict content with the given Avro schema.
117
-
The method will use a schema previously registered to the Schema Registry service and keep the schema cached for future encoding usage. It is also possible to avoid pre-registering the schema to the service and automatically register with the `encode` method by instantiating the `AvroEncoder` with the keyword argument `auto_register_schemas=True`.
117
+
The method will use a schema previously registered to the Schema Registry service and keep the schema cached for future encoding usage. It is also possible to avoid pre-registering the schema to the service and automatically register with the `encode` method by instantiating the `AvroEncoder` with the keyword argument `auto_register=True`.
0 commit comments