set highlight threshold per #1184
This commit is contained in:
3
dist/swagger-ui.js
vendored
3
dist/swagger-ui.js
vendored
@@ -20397,6 +20397,9 @@ window.SwaggerUi = Backbone.Router.extend({
|
|||||||
// SwaggerUi accepts all the same options as SwaggerApi
|
// SwaggerUi accepts all the same options as SwaggerApi
|
||||||
initialize: function(options) {
|
initialize: function(options) {
|
||||||
options = options || {};
|
options = options || {};
|
||||||
|
if(!options.highlightSizeThreshold) {
|
||||||
|
options.highlightSizeThreshold = 100000;
|
||||||
|
}
|
||||||
|
|
||||||
// Allow dom_id to be overridden
|
// Allow dom_id to be overridden
|
||||||
if (options.dom_id) {
|
if (options.dom_id) {
|
||||||
|
|||||||
2
dist/swagger-ui.min.js
vendored
2
dist/swagger-ui.min.js
vendored
File diff suppressed because one or more lines are too long
@@ -13,6 +13,9 @@ window.SwaggerUi = Backbone.Router.extend({
|
|||||||
// SwaggerUi accepts all the same options as SwaggerApi
|
// SwaggerUi accepts all the same options as SwaggerApi
|
||||||
initialize: function(options) {
|
initialize: function(options) {
|
||||||
options = options || {};
|
options = options || {};
|
||||||
|
if(!options.highlightSizeThreshold) {
|
||||||
|
options.highlightSizeThreshold = 100000;
|
||||||
|
}
|
||||||
|
|
||||||
// Allow dom_id to be overridden
|
// Allow dom_id to be overridden
|
||||||
if (options.dom_id) {
|
if (options.dom_id) {
|
||||||
|
|||||||
Reference in New Issue
Block a user