Skip to content

Commit

Permalink
kusto fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Clemens Vasters committed Nov 25, 2024
1 parent 7d55af3 commit aa0b2a8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion avrotize/avrotocsharp.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def __init__(self, base_namespace: str = '') -> None:
self.avro_annotation = False
self.generated_types: Dict[str,str] = {}
self.generated_avro_types: Dict[str, Dict[str, Union[str, Dict, List]]] = {}
self.type_dict = {}
self.type_dict: Dict[str, Dict] = {}

def get_qualified_name(self, namespace: str, name: str) -> str:
""" Concatenates namespace and name with a dot separator """
Expand Down
8 changes: 4 additions & 4 deletions avrotize/kustotoavro.py
Original file line number Diff line number Diff line change
Expand Up @@ -393,8 +393,8 @@ def process_all_tables(self):
xregistry_messages[schemaid] = {
"id": schemaid,
"name": schema_name,
"format": "CloudEvents/1.0",
"metadata": {
"envelope": "CloudEvents/1.0",
"envelopemetadata": {
"type": {
"value": schemaid
},
Expand All @@ -403,13 +403,13 @@ def process_all_tables(self):
},
},
"schemaformat": f"Avro/{AVRO_VERSION}",
"schemaurl": f"#/schemagroups/{groupname}/schemas/{schemaid}"
"schemauri": f"#/schemagroups/{groupname}/schemas/{schemaid}"
}
for key, value in ce_attribs.items():
# skip the required attributes
if key == "type" or key == "source" or key == "id" or key == "specversion":
continue
xregistry_messages[schemaid]["metadata"][key] = {
xregistry_messages[schemaid]["envelopemetadata"][key] = {
"type": value,
"required": True
}
Expand Down

0 comments on commit aa0b2a8

Please sign in to comment.