Skip to content

Commit 4c24de4

Browse files
committed
Generate docstring for models
1 parent 2d13f24 commit 4c24de4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

openapi_python_client/templates/model.pyi

+1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ from typing import Dict, List, Optional
1111

1212
@dataclass
1313
class {{ schema.reference.class_name }}:
14+
""" {{ schema.description }} """
1415
{% for property in schema.required_properties + schema.optional_properties %}
1516
{{ property.to_string() }}
1617
{% endfor %}

0 commit comments

Comments
 (0)