You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
:param {{ name|attribute_name }}: {{ parameter.description|docstring|indent(12) }}{%- ifparameter.default%} If omitted the server will use the default value of {{ parameter.default }}.{%endif%}{%endif%}
154
+
:param {{ name|attribute_name }}: {{ (parameter.description or "")|docstring|indent(12) }}{%- ifparameter.default%} If omitted the server will use the default value of {{ parameter.default }}.{%endif%}{%endif%}
:param {{ name|attribute_name }}: {{ parameter.description|docstring|indent(12) }}{%- ifparameter.default%} If omitted the server will use the default value of {{ parameter.default }}.{%endif%}{%endif%}
189
+
:param {{ name|attribute_name }}: {{ (parameter.description or "")|docstring|indent(12) }}{%- ifparameter.default%} If omitted the server will use the default value of {{ parameter.default }}.{%endif%}{%endif%}
Copy file name to clipboardExpand all lines: .generator/src/generator/templates/model_enum.j2
+1-3Lines changed: 1 addition & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -3,9 +3,7 @@ from typing import ClassVar
3
3
4
4
class {{ name }}(ModelSimple):
5
5
"""
6
-
{%- if"description"inmodel%}
7
-
{{ model.description|indent(8) }}
8
-
{%- endif%}
6
+
{{ (model.description or "")|indent(8) }}
9
7
10
8
:param value: {%- ifdefault != None%} If omitted defaults to {{ default|format_value }}.{%- endif%} Must be one of [{%- forvalueinmodel.enum%}{{ value|format_value }}{%ifnotloop.last%}, {%endif%}{%- endfor%}].
0 commit comments