Skip to content

Commit 828ba4b

Browse files
authored
Merge pull request #698 from swagger-api/swos_196
fix for invalid model name in html2 genetator
2 parents 92b71d3 + aeb35ad commit 828ba4b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/resources/handlebars/htmlDocs2/index.mustache

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,10 +115,10 @@
115115
{{#models}}
116116
{{#model}}
117117
{{#isComposedModel}}
118-
defs.{{name}} = {};
118+
defs["{{name}}"] = {};
119119
{{/isComposedModel}}
120120
{{^isComposedModel}}
121-
defs.{{name}} = {{{modelJson}}};
121+
defs["{{name}}"] = {{{modelJson}}};
122122
{{/isComposedModel}}
123123
{{/model}}
124124
{{/models}}

0 commit comments

Comments
 (0)