Commit 431289d1 authored by Marc Matt's avatar Marc Matt
Browse files

Merge remote-tracking branch 'origin/master'

parents 7d6e9e65 f696d434
......@@ -75,6 +75,14 @@ class AvroGenerator(object):
json_dict['fields'][i]['type'] = str(subschemas[key])
i = i + 1
json_dict = json.loads(str(json_dict).replace("'{", "{").replace("}'", "}").replace("'", '"'))
i = 0
for field in json_dict['fields']:
for key, value in field.items():
if value == "null":
json_dict['fields'][i][key] = None
i = i + 1
try:
schema = avro.schema.Parse(json.dumps(json_dict))
success = True
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment