fix for #387
This commit is contained in:
2
dist/lib/swagger.js
vendored
2
dist/lib/swagger.js
vendored
@@ -533,7 +533,7 @@
|
|||||||
_ref1 = this.properties;
|
_ref1 = this.properties;
|
||||||
for (_j = 0, _len1 = _ref1.length; _j < _len1; _j++) {
|
for (_j = 0, _len1 = _ref1.length; _j < _len1; _j++) {
|
||||||
prop = _ref1[_j];
|
prop = _ref1[_j];
|
||||||
if ((prop.refModel != null) && (modelsToIgnore[prop.refModel] !== 'undefined') === -1) {
|
if ((prop.refModel != null) && modelsToIgnore.indexOf(prop.refModel) === -1) {
|
||||||
returnVal = returnVal + ('<br>' + prop.refModel.getMockSignature(modelsToIgnore));
|
returnVal = returnVal + ('<br>' + prop.refModel.getMockSignature(modelsToIgnore));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -53,7 +53,9 @@
|
|||||||
useJQuery: this.useJQuery,
|
useJQuery: this.useJQuery,
|
||||||
url: this.url,
|
url: this.url,
|
||||||
method: "get",
|
method: "get",
|
||||||
headers: {},
|
headers: {
|
||||||
|
accept: "application/json"
|
||||||
|
},
|
||||||
on: {
|
on: {
|
||||||
error: function(response) {
|
error: function(response) {
|
||||||
if (_this.url.substring(0, 4) !== 'http') {
|
if (_this.url.substring(0, 4) !== 'http') {
|
||||||
@@ -304,7 +306,9 @@
|
|||||||
url: this.url,
|
url: this.url,
|
||||||
method: "get",
|
method: "get",
|
||||||
useJQuery: this.useJQuery,
|
useJQuery: this.useJQuery,
|
||||||
headers: {},
|
headers: {
|
||||||
|
accept: "application/json"
|
||||||
|
},
|
||||||
on: {
|
on: {
|
||||||
error: function(response) {
|
error: function(response) {
|
||||||
return _this.api.fail("Unable to read api '" + _this.name + "' from path " + _this.url + " (server returned " + response.statusText + ")");
|
return _this.api.fail("Unable to read api '" + _this.name + "' from path " + _this.url + " (server returned " + response.statusText + ")");
|
||||||
@@ -529,7 +533,7 @@
|
|||||||
_ref1 = this.properties;
|
_ref1 = this.properties;
|
||||||
for (_j = 0, _len1 = _ref1.length; _j < _len1; _j++) {
|
for (_j = 0, _len1 = _ref1.length; _j < _len1; _j++) {
|
||||||
prop = _ref1[_j];
|
prop = _ref1[_j];
|
||||||
if ((prop.refModel != null) && (modelsToIgnore[prop.refModel] !== 'undefined') === -1) {
|
if ((prop.refModel != null) && modelsToIgnore.indexOf(prop.refModel) === -1) {
|
||||||
returnVal = returnVal + ('<br>' + prop.refModel.getMockSignature(modelsToIgnore));
|
returnVal = returnVal + ('<br>' + prop.refModel.getMockSignature(modelsToIgnore));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user