Commit 1ad40939 authored by dbarbera's avatar dbarbera
Browse files

Replace minus char in struct field names

parent c0327a26
......@@ -769,7 +769,7 @@ def _generate_type(ty):
field_names = []
field_types = []
for field_name in Helper.sorted_fields(basic_ty):
field_names.append(field_name)
field_names.append(field_name.replace('-', '_'))
field_types.append(_generate_type(basic_ty.Children[field_name].type))
struct = StructType(ty.ReferencedTypeName, field_names, field_types)
......
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