Просмотр исходного кода

updated swagger.js dependency for #136

bubble
Tony Tam 11 лет назад
Родитель
Сommit
e7e95c372e
2 измененных файлов: 9 добавлений и 5 удалений
  1. +7
    -3
      dist/lib/swagger.js
  2. +2
    -2
      package.json

+ 7
- 3
dist/lib/swagger.js Просмотреть файл

@@ -324,7 +324,7 @@
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;
propertiesStr = [];
_ref = this.properties;
@@ -341,11 +341,15 @@
if (prefix != null) {
returnVal = stronger + prefix + strongClose + '<br/>' + returnVal;
}
if (!modelsToIgnore) {
modelsToIgnore = [];
}
modelsToIgnore.push(this);
_ref1 = this.properties;
for (_j = 0, _len1 = _ref1.length; _j < _len1; _j++) {
prop = _ref1[_j];
if ((prop.refModel != null) && (!(prop.refModel === modelToIgnore))) {
returnVal = returnVal + ('<br>' + prop.refModel.getMockSignature(void 0, this));
if ((prop.refModel != null) && (modelsToIgnore.indexOf(prop.refModel)) === -1) {
returnVal = returnVal + ('<br>' + prop.refModel.getMockSignature(void 0, modelsToIgnore));
}
}
return returnVal;


+ 2
- 2
package.json Просмотреть файл

@@ -1,6 +1,6 @@
{
"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",
"scripts": {
"build": "PATH=$PATH:./node_modules/.bin cake dist",
@@ -19,7 +19,7 @@
"readmeFilename": "README.md",
"dependencies": {
"coffee-script": "~1.4.0",
"swagger-client": "1.0.x",
"swagger-client": "1.0.1",
"handlebars": "~1.0.8"
}
}

Загрузка…
Отмена
Сохранить