implement option to control whether models are displayed as valid JSON schema or the docs rendering (with descriptions) by default
This commit is contained in:
@@ -13,7 +13,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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user