Skip to content

Commit 085cc05

Browse files
committed
fixed responseMessages issue per #267
1 parent 888db09 commit 085cc05

File tree

6 files changed

+45
-20
lines changed

6 files changed

+45
-20
lines changed

dist/lib/swagger.js

Lines changed: 19 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/swagger-ui.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -461,7 +461,7 @@ function program11(depth0,data) {
461461
stack1 = helpers['if'].call(depth0, depth0.parameters, {hash:{},inverse:self.noop,fn:self.program(5, program5, data),data:data});
462462
if(stack1 || stack1 === 0) { buffer += stack1; }
463463
buffer += "\n ";
464-
stack1 = helpers['if'].call(depth0, depth0.errorResponses, {hash:{},inverse:self.noop,fn:self.program(7, program7, data),data:data});
464+
stack1 = helpers['if'].call(depth0, depth0.responseMessages, {hash:{},inverse:self.noop,fn:self.program(7, program7, data),data:data});
465465
if(stack1 || stack1 === 0) { buffer += stack1; }
466466
buffer += "\n ";
467467
stack1 = helpers['if'].call(depth0, depth0.isReadOnly, {hash:{},inverse:self.program(11, program11, data),fn:self.program(9, program9, data),data:data});
@@ -1134,10 +1134,10 @@ helpers = this.merge(helpers, Handlebars.helpers); data = data || {};
11341134
else { stack1 = depth0.code; stack1 = typeof stack1 === functionType ? stack1.apply(depth0) : stack1; }
11351135
buffer += escapeExpression(stack1)
11361136
+ "</td>\n<td>";
1137-
if (stack1 = helpers.reason) { stack1 = stack1.call(depth0, {hash:{},data:data}); }
1138-
else { stack1 = depth0.reason; stack1 = typeof stack1 === functionType ? stack1.apply(depth0) : stack1; }
1137+
if (stack1 = helpers.message) { stack1 = stack1.call(depth0, {hash:{},data:data}); }
1138+
else { stack1 = depth0.message; stack1 = typeof stack1 === functionType ? stack1.apply(depth0) : stack1; }
11391139
if(stack1 || stack1 === 0) { buffer += stack1; }
1140-
buffer += "</td>\n\n";
1140+
buffer += "</td>\n";
11411141
return buffer;
11421142
});
11431143
})();

dist/swagger-ui.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/swagger.js

Lines changed: 19 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/main/template/operation.handlebars

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
</tbody>
4747
</table>
4848
{{/if}}
49-
{{#if errorResponses}}
49+
{{#if responseMessages}}
5050
<div style='margin:0;padding:0;display:inline'></div>
5151
<h4>Error Status Codes</h4>
5252
<table class='fullwidth'>
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
11
<td width='15%' class='code'>{{code}}</td>
2-
<td>{{{reason}}}</td>
3-
2+
<td>{{{message}}}</td>

0 commit comments

Comments
 (0)