#1248 moved model rendering into separate partial

This commit is contained in:
Anna Bodnia
2016-01-05 13:50:30 +02:00
parent 3dd4315bb8
commit 3426cc8c13
8 changed files with 416 additions and 693 deletions

View File

@@ -1,4 +1,4 @@
/*global JSONEditor*/
/*global JSONEditor*/
'use strict';
window.SwaggerUi = Backbone.Router.extend({
@@ -14,11 +14,11 @@ window.SwaggerUi = Backbone.Router.extend({
// SwaggerUi accepts all the same options as SwaggerApi
initialize: function(options) {
options = options || {};
if (options.defaultModelRendering !== 'model') {
options.defaultModelRendering = 'schema';
}
if (!options.highlightSizeThreshold) {
options.highlightSizeThreshold = 100000;
}
@@ -229,6 +229,7 @@ window.SwaggerUi = Backbone.Router.extend({
});
window.SwaggerUi.Views = {};
window.SwaggerUi.Views.partials = {};
// don't break backward compatibility with previous versions and warn users to upgrade their code
(function(){