提交 348f1e10 编写于 作者: T Tony Tam

updated swagger-js

上级 abc36009
...@@ -301,7 +301,7 @@ ...@@ -301,7 +301,7 @@
headers: {}, headers: {},
on: { on: {
error: function(response) { error: function(response) {
return _this.api.fail("Unable to read api '" + _this.name + "' from path " + _this.url + " (server returned " + error.statusText + ")"); return _this.api.fail("Unable to read api '" + _this.name + "' from path " + _this.url + " (server returned " + response.statusText + ")");
}, },
response: function(rawResponse) { response: function(rawResponse) {
var response; var response;
......
此差异已折叠。
...@@ -301,7 +301,7 @@ ...@@ -301,7 +301,7 @@
headers: {}, headers: {},
on: { on: {
error: function(response) { error: function(response) {
return _this.api.fail("Unable to read api '" + _this.name + "' from path " + _this.url + " (server returned " + error.statusText + ")"); return _this.api.fail("Unable to read api '" + _this.name + "' from path " + _this.url + " (server returned " + response.statusText + ")");
}, },
response: function(rawResponse) { response: function(rawResponse) {
var response; var response;
......
{ {
"name": "swagger-ui", "name": "swagger-ui",
"version": "2.0.1", "version": "2.0.2",
"description": "Swagger UI is a dependency-free collection of HTML, Javascript, and CSS assets that dynamically generate beautiful documentation from a Swagger-compliant API", "description": "Swagger UI is a dependency-free collection of HTML, Javascript, and CSS assets that dynamically generate beautiful documentation from a Swagger-compliant API",
"scripts": { "scripts": {
"build": "PATH=$PATH:./node_modules/.bin cake dist", "build": "PATH=$PATH:./node_modules/.bin cake dist",
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册