Skip to content

Commit 995d156

Browse files
Allow missing descriptions. (#975)
1 parent 51ec903 commit 995d156

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.generator/src/generator/formatter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ def is_primitive(schema):
7070

7171

7272
def block_comment(comment, prefix="///", first_line=True):
73-
comment = re.sub(r"(\w+://[^\s\(\)]+)", r"<\1>", comment)
73+
comment = re.sub(r"(\w+://[^\s\(\)]+)", r"<\1>", comment or "")
7474
lines = comment.split("\n")
7575
start = "" if first_line else lines[0] + "\n"
7676
return (start + "\n".join(f"{prefix} {line}".rstrip() for line in lines[(0 if first_line else 1) :])).rstrip()

0 commit comments

Comments
 (0)