Skip to content

Commit aa0b2a8

Browse files
author
Clemens Vasters
committed
kusto fix
1 parent 7d55af3 commit aa0b2a8

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

avrotize/avrotocsharp.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ def __init__(self, base_namespace: str = '') -> None:
4242
self.avro_annotation = False
4343
self.generated_types: Dict[str,str] = {}
4444
self.generated_avro_types: Dict[str, Dict[str, Union[str, Dict, List]]] = {}
45-
self.type_dict = {}
45+
self.type_dict: Dict[str, Dict] = {}
4646

4747
def get_qualified_name(self, namespace: str, name: str) -> str:
4848
""" Concatenates namespace and name with a dot separator """

avrotize/kustotoavro.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -393,8 +393,8 @@ def process_all_tables(self):
393393
xregistry_messages[schemaid] = {
394394
"id": schemaid,
395395
"name": schema_name,
396-
"format": "CloudEvents/1.0",
397-
"metadata": {
396+
"envelope": "CloudEvents/1.0",
397+
"envelopemetadata": {
398398
"type": {
399399
"value": schemaid
400400
},
@@ -403,13 +403,13 @@ def process_all_tables(self):
403403
},
404404
},
405405
"schemaformat": f"Avro/{AVRO_VERSION}",
406-
"schemaurl": f"#/schemagroups/{groupname}/schemas/{schemaid}"
406+
"schemauri": f"#/schemagroups/{groupname}/schemas/{schemaid}"
407407
}
408408
for key, value in ce_attribs.items():
409409
# skip the required attributes
410410
if key == "type" or key == "source" or key == "id" or key == "specversion":
411411
continue
412-
xregistry_messages[schemaid]["metadata"][key] = {
412+
xregistry_messages[schemaid]["envelopemetadata"][key] = {
413413
"type": value,
414414
"required": True
415415
}

0 commit comments

Comments
 (0)