azure-schemaregistry-avroencoder_1.0.0b3
Pre-release
Pre-release
1.0.0b3 (2022-04-05)
Breaking Changes
auto_register_schemaskeyword in the sync and asyncAvroEncoderconstructors has been renamedauto_register.SchemaParseError,SchemaEncodeError, andSchemaDecodeErrorhave been replaced withInvalidContentErrorandInvalidSchemaError. The errors have been added under theazure.schemaregistry.encoder.avroencodernamespace.- The
exceptionsmodule inazure.schemaregistry.encoder.avroencoderhas been removed. - The
encodemethod on the sync and asyncAvroEncoderonly allows subtypes of theMessageTypeprotocol as values to themessage_typeoptional 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
encodeanddecodemethods onAvroEncodersupport the following message models:azure.eventhub.EventDatainazure-eventhub==5.9.0b3