diff --git a/python/templates/types/struct_fields.py.jinja b/python/templates/types/struct_fields.py.jinja index 52b76d50f..4c5d8436c 100644 --- a/python/templates/types/struct_fields.py.jinja +++ b/python/templates/types/struct_fields.py.jinja @@ -1,3 +1,4 @@ +{% if type.fields | length == 0 %} pass{% endif -%} {% for field in type.fields %} {%- if field.required and not field.nullable %} {%- if field.name | to_lower_camel_case != field.name %}