Skip to content

Commit 6948b1a

Browse files
authored
python: Support field-less object types (#1801)
We've got some field-less object types in the next version of our API spec.
2 parents 0088783 + 0a9472b commit 6948b1a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

python/templates/types/struct_fields.py.jinja

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
{% if type.fields | length == 0 %} pass{% endif -%}
12
{% for field in type.fields %}
23
{%- if field.required and not field.nullable %}
34
{%- if field.name | to_lower_camel_case != field.name %}

0 commit comments

Comments
 (0)