translated of title-attribute and extended a list ow known lexemes
This commit is contained in:
19
dist/lib/swagger-client.js
vendored
19
dist/lib/swagger-client.js
vendored
@@ -291,7 +291,6 @@ var SwaggerClient = function(url, options) {
|
|||||||
this.isValid = false;
|
this.isValid = false;
|
||||||
this.info = null;
|
this.info = null;
|
||||||
this.useJQuery = false;
|
this.useJQuery = false;
|
||||||
this.resourceCount = 0;
|
|
||||||
|
|
||||||
if(typeof url !== 'undefined')
|
if(typeof url !== 'undefined')
|
||||||
return this.initialize(url, options);
|
return this.initialize(url, options);
|
||||||
@@ -1570,7 +1569,6 @@ SwaggerClient.prototype.buildFrom1_2Spec = function (response) {
|
|||||||
this.apisArray.push(res);
|
this.apisArray.push(res);
|
||||||
} else {
|
} else {
|
||||||
var k;
|
var k;
|
||||||
this.expectedResourceCount = response.apis.length;
|
|
||||||
for (k = 0; k < response.apis.length; k++) {
|
for (k = 0; k < response.apis.length; k++) {
|
||||||
var resource = response.apis[k];
|
var resource = response.apis[k];
|
||||||
res = new SwaggerResource(resource, this);
|
res = new SwaggerResource(resource, this);
|
||||||
@@ -1579,16 +1577,11 @@ SwaggerClient.prototype.buildFrom1_2Spec = function (response) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
this.isValid = true;
|
this.isValid = true;
|
||||||
return this;
|
if (typeof this.success === 'function') {
|
||||||
|
this.success();
|
||||||
|
} return this;
|
||||||
};
|
};
|
||||||
|
|
||||||
SwaggerClient.prototype.finish = function() {
|
|
||||||
if (typeof this.success === 'function') {
|
|
||||||
console.log('success');
|
|
||||||
this.selfReflect();
|
|
||||||
this.success();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
SwaggerClient.prototype.buildFrom1_1Spec = function (response) {
|
SwaggerClient.prototype.buildFrom1_1Spec = function (response) {
|
||||||
log('This API is using a deprecated version of Swagger! Please see http://github.com/wordnik/swagger-core/wiki for more info');
|
log('This API is using a deprecated version of Swagger! Please see http://github.com/wordnik/swagger-core/wiki for more info');
|
||||||
@@ -1735,11 +1728,9 @@ var SwaggerResource = function (resourceObj, api) {
|
|||||||
on: {
|
on: {
|
||||||
response: function (resp) {
|
response: function (resp) {
|
||||||
var responseObj = resp.obj || JSON.parse(resp.data);
|
var responseObj = resp.obj || JSON.parse(resp.data);
|
||||||
_this.api.resourceCount += 1;
|
|
||||||
return _this.addApiDeclaration(responseObj);
|
return _this.addApiDeclaration(responseObj);
|
||||||
},
|
},
|
||||||
error: function (response) {
|
error: function (response) {
|
||||||
_this.api.resourceCount += 1;
|
|
||||||
return _this.api.fail('<span data-swTarnslate="1">Unable to read api</span> \'' +
|
return _this.api.fail('<span data-swTarnslate="1">Unable to read api</span> \'' +
|
||||||
_this.name + '\' <span data-swTarnslate="1">from path</span> ' + _this.url + ' (<span data-swTarnslate="1">server returned</span> ' + response.statusText + ')');
|
_this.name + '\' <span data-swTarnslate="1">from path</span> ' + _this.url + ' (<span data-swTarnslate="1">server returned</span> ' + response.statusText + ')');
|
||||||
}
|
}
|
||||||
@@ -1793,9 +1784,7 @@ SwaggerResource.prototype.addApiDeclaration = function (response) {
|
|||||||
}
|
}
|
||||||
this.api[this.name] = this;
|
this.api[this.name] = this;
|
||||||
this.ready = true;
|
this.ready = true;
|
||||||
if(this.api.resourceCount === this.api.expectedResourceCount)
|
return this.api.selfReflect();
|
||||||
this.api.finish();
|
|
||||||
return this;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
SwaggerResource.prototype.addModels = function (models) {
|
SwaggerResource.prototype.addModels = function (models) {
|
||||||
|
|||||||
2
dist/swagger-ui.js
vendored
2
dist/swagger-ui.js
vendored
@@ -289,7 +289,6 @@ SwaggerUi = (function(_super) {
|
|||||||
};
|
};
|
||||||
|
|
||||||
SwaggerUi.prototype.load = function() {
|
SwaggerUi.prototype.load = function() {
|
||||||
console.log(0)
|
|
||||||
var url, _ref;
|
var url, _ref;
|
||||||
if ((_ref = this.mainView) != null) {
|
if ((_ref = this.mainView) != null) {
|
||||||
_ref.clear();
|
_ref.clear();
|
||||||
@@ -1938,7 +1937,6 @@ ResourceView = (function(_super) {
|
|||||||
};
|
};
|
||||||
|
|
||||||
ResourceView.prototype.addOperation = function(operation) {
|
ResourceView.prototype.addOperation = function(operation) {
|
||||||
console.log(operation)
|
|
||||||
var operationView;
|
var operationView;
|
||||||
operation.number = this.number;
|
operation.number = this.number;
|
||||||
operationView = new OperationView({
|
operationView = new OperationView({
|
||||||
|
|||||||
Reference in New Issue
Block a user