updated swagger.js dependency for #136
This commit is contained in:
10
dist/lib/swagger.js
vendored
10
dist/lib/swagger.js
vendored
@@ -324,7 +324,7 @@
|
|||||||
return _results;
|
return _results;
|
||||||
};
|
};
|
||||||
|
|
||||||
SwaggerModel.prototype.getMockSignature = function(prefix, modelToIgnore) {
|
SwaggerModel.prototype.getMockSignature = function(prefix, modelsToIgnore) {
|
||||||
var classClose, classOpen, prop, propertiesStr, returnVal, strong, strongClose, stronger, _i, _j, _len, _len1, _ref, _ref1;
|
var classClose, classOpen, prop, propertiesStr, returnVal, strong, strongClose, stronger, _i, _j, _len, _len1, _ref, _ref1;
|
||||||
propertiesStr = [];
|
propertiesStr = [];
|
||||||
_ref = this.properties;
|
_ref = this.properties;
|
||||||
@@ -341,11 +341,15 @@
|
|||||||
if (prefix != null) {
|
if (prefix != null) {
|
||||||
returnVal = stronger + prefix + strongClose + '<br/>' + returnVal;
|
returnVal = stronger + prefix + strongClose + '<br/>' + returnVal;
|
||||||
}
|
}
|
||||||
|
if (!modelsToIgnore) {
|
||||||
|
modelsToIgnore = [];
|
||||||
|
}
|
||||||
|
modelsToIgnore.push(this);
|
||||||
_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) && (!(prop.refModel === modelToIgnore))) {
|
if ((prop.refModel != null) && (modelsToIgnore.indexOf(prop.refModel)) === -1) {
|
||||||
returnVal = returnVal + ('<br>' + prop.refModel.getMockSignature(void 0, this));
|
returnVal = returnVal + ('<br>' + prop.refModel.getMockSignature(void 0, modelsToIgnore));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return returnVal;
|
return returnVal;
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "swagger-ui",
|
"name": "swagger-ui",
|
||||||
"version": "0.1.10",
|
"version": "0.1.11",
|
||||||
"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",
|
||||||
@@ -19,7 +19,7 @@
|
|||||||
"readmeFilename": "README.md",
|
"readmeFilename": "README.md",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"coffee-script": "~1.4.0",
|
"coffee-script": "~1.4.0",
|
||||||
"swagger-client": "1.0.x",
|
"swagger-client": "1.0.1",
|
||||||
"handlebars": "~1.0.8"
|
"handlebars": "~1.0.8"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user