Merge remote-tracking branch 'upstream/master' into JSONEditorMaster
Conflicts: dist/swagger-ui.js dist/swagger-ui.min.js src/main/javascript/view/OperationView.js src/main/less/screen.less
This commit is contained in:
@@ -14,7 +14,12 @@ window.SwaggerUi = Backbone.Router.extend({
|
||||
// SwaggerUi accepts all the same options as SwaggerApi
|
||||
initialize: function(options) {
|
||||
options = options || {};
|
||||
if(!options.highlightSizeThreshold) {
|
||||
|
||||
if (options.defaultModelRendering !== 'model') {
|
||||
options.defaultModelRendering = 'schema';
|
||||
}
|
||||
|
||||
if (!options.highlightSizeThreshold) {
|
||||
options.highlightSizeThreshold = 100000;
|
||||
}
|
||||
|
||||
@@ -187,7 +192,7 @@ window.SwaggerUi = Backbone.Router.extend({
|
||||
var $msgbar = $('#message-bar');
|
||||
$msgbar.removeClass('message-fail');
|
||||
$msgbar.addClass('message-success');
|
||||
$msgbar.html(data);
|
||||
$msgbar.text(data);
|
||||
if(window.SwaggerTranslator) {
|
||||
window.SwaggerTranslator.translate($msgbar);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user