Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
bodnia committed Jun 13, 2016
1 parent 531a1a6 commit e478765
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 11 deletions.
17 changes: 8 additions & 9 deletions swagger-ui.js
Original file line number Diff line number Diff line change
Expand Up @@ -19748,9 +19748,7 @@ SwaggerUi.Views.AuthView = Backbone.View.extend({
e.preventDefault();

this.authsCollectionView.collection.forEach(function (auth) {
var name = auth.get('type') === 'basic' ? 'basic' : auth.get('title');

window.swaggerUi.api.clientAuthorizations.remove(name);
window.swaggerUi.api.clientAuthorizations.remove(auth.get('title'));
});

this.router.load();
Expand Down Expand Up @@ -19914,12 +19912,9 @@ SwaggerUi.Views.BasicAuthView = Backbone.View.extend({
if (!this.model.get('username')) {
this.$(this.selectors.usernameInput).addClass(this.cls.error);
}

if (!this.model.get('password')) {
this.$(this.selectors.passwordInput).addClass(this.cls.error);
}
}
});

'use strict';

SwaggerUi.Views.ContentTypeView = Backbone.View.extend({
Expand Down Expand Up @@ -21968,15 +21963,19 @@ SwaggerUi.partials.signature = (function () {
var value;
var items = definition.items;
var xml = definition.xml || {};
var namespace = getNamespace(xml);
var attributes = [];

if (!items) { return getErrorMessage(); }

value = createSchemaXML(name, items, models, config);

xml = xml || {};
if (namespace) {
attributes.push(namespace);
}

if (xml.wrapped) {
value = wrapTag(name, value);
value = wrapTag(name, value, attributes);
}

return value;
Expand Down
Loading

0 comments on commit e478765

Please sign in to comment.