1.0.0b3 (2022-04-05)
Breaking Changes
auto_register_schemas
keyword in the sync and asyncAvroEncoder
constructors has been renamedauto_register
.SchemaParseError
,SchemaEncodeError
, andSchemaDecodeError
have been replaced withInvalidContentError
andInvalidSchemaError
. The errors have been added under theazure.schemaregistry.encoder.avroencoder
namespace.- The
exceptions
module inazure.schemaregistry.encoder.avroencoder
has been removed. - The
encode
method on the sync and asyncAvroEncoder
only allows subtypes of theMessageType
protocol as values to themessage_type
optional parameter, rather than any callable that has the method signature(content: bytes, content_type: str, **kwargs: Any)
. - The number of hits/misses, in addition to number of entries, for the schema/schema ID caches will be logged at an info level when a new entry is added.
Other Changes
- This release and future releases will not have backward compatibility support for decoding data that was encoded with the AvroSerializer.
- The
encode
anddecode
methods onAvroEncoder
support the following message models:azure.eventhub.EventData
inazure-eventhub==5.9.0b3