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
Copy file name to clipboardExpand all lines: sdk/schemaregistry/azure-schemaregistry/CHANGELOG.md
+15-3Lines changed: 15 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,22 +1,34 @@
1
1
# Release History
2
2
3
-
## 1.3.0b4 (Unreleased)
3
+
## 1.3.0 (Unreleased)
4
+
5
+
This version and all future versions will require Python 3.8+. Python 3.7 is no longer supported.
4
6
5
7
### Features Added
6
8
7
-
### Breaking Changes
9
+
-`V2022_10` has been added to `ApiVersion` and set as the default API version.
10
+
-`Json` and `Custom` have been added to supported formats in `SchemaFormat`.
11
+
- Sync and async `JsonSchemaEncoder` have been added under `azure.schemaregistry.encoder.jsonencoder`.
12
+
-`InvalidContentError` have been added under `azure.schemaregistry.encoder.jsonencoder` for use with the `JsonSchemaEncoder`.
13
+
-`MessageContent`, `OutboundMessageContent`,`InboundMessageContent`, and `SchemaContentValidate` have been added under `azure.schemaregistry` as protocols for use with the `JsonSchemaEncoder` and/or future encoder implementations.
8
14
9
15
### Bugs Fixed
10
16
17
+
- Fixed a bug in sync/async `register_schema` and `get_schema_properties` that did not accept case insensitive strings as an argument to the `format` parameter.
18
+
11
19
### Other Changes
12
20
13
21
- Updated azure-core minimum dependency to 1.28.0.
22
+
- Added support for Python 3.11 and 3.12.
23
+
- The following features have been temporarily pulled out and will be added back in future previews as we work towards a stable release:
24
+
-`V2023_07_01` in `ApiVersion`.
25
+
-`PROTOBUF` in `SchemaFormat`.
14
26
15
27
## 1.3.0b3 (2023-11-09)
16
28
17
29
### Features Added
18
30
19
-
-`V2023_07_01` has been added to `ApiVersion` and set as the default api version.
31
+
-`V2023_07_01` has been added to `ApiVersion` and set as the default API version.
20
32
-`Protobuf` has been added to supported formats in `SchemaFormat`.
* Azure subscription - [Create a free account][azure_sub]
42
42
*[Azure Schema Registry][schemaregistry_service] - [Here is the quickstart guide][quickstart_guide] to create a Schema Registry group using the Azure portal.
* Schema: Schema is the organization or structure for data. More detailed information can be found [here][schemas].
95
97
96
98
* Schema Group: A logical group of similar schemas based on business criteria, which can hold multiple versions of a schema. More detailed information can be found [here][schema_groups].
97
99
98
100
* SchemaRegistryClient: `SchemaRegistryClient` provides the API for storing and retrieving schemas in schema registry.
99
101
102
+
### Encoder concepts
103
+
100
104
* JsonSchemaEncoder: Provides API to encode content to and decode content from Binary Encoding, validate content against a JSON Schema, and cache schemas/schema IDs retrived from the registry using the `SchemaRegistryClient` locally.
101
105
102
-
* MessageType: Protocol defined under `azure.schemaregistry` that allows for `JsonSchemaEncoder` interoperability with certain Azure Messaging SDK message types. Support has been added to:
106
+
* OutboundMessageContent: Protocol defined under `azure.schemaregistry` that allows for `JsonSchemaEncoder.encode` interoperability with certain Azure Messaging SDK message types. Support has been added to:
107
+
*`azure.eventhub.EventData` for `azure-eventhub>=5.9.0`
108
+
109
+
* InboundMessageContent: Protocol defined under `azure.schemaregistry` that allows for `JsonSchemaEncoder.decode` interoperability with certain Azure Messaging SDK message types. Support has been added to:
103
110
*`azure.eventhub.EventData` for `azure-eventhub>=5.9.0`
104
111
105
-
###MessageType
112
+
#### OutboundMessageContent/InboundMessageContent
106
113
107
-
If a message type that follows the MessageType protocol is provided to the encoder, it will set the corresponding content and content type properties:
114
+
If a message type that follows the OutboundMessageContent protocol is provided to the `JsonSchemaEncoder`, it will set the corresponding content and content type properties. If a message type object that follows the InboundMessageContent protocol is provided to the encoder, it will get the corresponding content and content type properties. These are defined as:
108
115
109
116
*`content`: Binary-encoded, JSON schema-validated payload (in general, format-specific payload)
110
117
@@ -253,15 +260,17 @@ The `encode` method automatically retrieves the schema from the Schema Registry
253
260
254
261
```python
255
262
import os
263
+
import json
256
264
from azure.schemaregistry import SchemaRegistryClient, SchemaFormat
257
-
from azure.schemaregistry.encoder.jsonencoder import JsonSchemaEncoder, JsonSchemaDraftIdentifier
265
+
from azure.schemaregistry.encoder.jsonencoder import JsonSchemaEncoder
0 commit comments