#1248 moved model rendering into separate partial
This commit is contained in:
@@ -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(){
|
||||
|
||||
Reference in New Issue
Block a user