Commit 4f1322f
authored
fix: handle empty description string in class generator (#2677)
When API schema has description: "" (empty string), dict.get()
returns the empty string instead of falling back to
MISSING_DESCRIPTION_STR, causing empty class docstrings.
Use 'or' instead of get() default to handle both missing and
empty/falsy description values.1 parent 16ded46 commit 4f1322f
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
89 | 89 | | |
90 | 90 | | |
91 | 91 | | |
92 | | - | |
| 92 | + | |
93 | 93 | | |
94 | 94 | | |
95 | 95 | | |
| |||
0 commit comments