Added hover over popup to display property validation attributes

swagger-ui does not render all Parameter-fields #808
This commit is contained in:
Brian Shamblen
2015-01-29 10:11:13 -08:00
parent b7a7607820
commit d7ac2f7232
8 changed files with 246 additions and 2 deletions

7
dist/swagger-ui.js vendored
View File

@@ -1639,7 +1639,12 @@ helpers = this.merge(helpers, Handlebars.helpers); data = data || {};
resources[id] = resource;
this.addResource(resource, this.model.auths);
}
return this;
this;
return $('.propWrap').hover(function() {
return $('.optionsWrapper', $(this)).show();
}, function() {
return $('.optionsWrapper', $(this)).hide();
});
};
MainView.prototype.addResource = function(resource, auths) {