merged
This commit is contained in:
4
dist/swagger-ui.js
vendored
4
dist/swagger-ui.js
vendored
@@ -25126,7 +25126,7 @@ SwaggerUi.Views.MainView = Backbone.View.extend({
|
|||||||
if ('validatorUrl' in opts.swaggerOptions) {
|
if ('validatorUrl' in opts.swaggerOptions) {
|
||||||
// Validator URL specified explicitly
|
// Validator URL specified explicitly
|
||||||
this.model.validatorUrl = opts.swaggerOptions.validatorUrl;
|
this.model.validatorUrl = opts.swaggerOptions.validatorUrl;
|
||||||
} else if (this.model.url.indexOf('localhost') > 0) {
|
} else if (this.model.url.indexOf('localhost') > 0 || this.model.url.indexOf('127.0.0.1') > 0) {
|
||||||
// Localhost override
|
// Localhost override
|
||||||
this.model.validatorUrl = null;
|
this.model.validatorUrl = null;
|
||||||
} else {
|
} else {
|
||||||
@@ -25926,7 +25926,7 @@ SwaggerUi.Views.OperationView = Backbone.View.extend({
|
|||||||
// adds curl output
|
// adds curl output
|
||||||
var curlCommand = this.model.asCurl(this.map, {responseContentType: contentType});
|
var curlCommand = this.model.asCurl(this.map, {responseContentType: contentType});
|
||||||
curlCommand = curlCommand.replace('!', '!');
|
curlCommand = curlCommand.replace('!', '!');
|
||||||
$( 'div.curl', $(this.el)).html('<pre>' + curlCommand + '</pre>');
|
$( 'div.curl', $(this.el)).html('<pre>' + _.escape(curlCommand) + '</pre>');
|
||||||
|
|
||||||
// only highlight the response if response is less than threshold, default state is highlight response
|
// only highlight the response if response is less than threshold, default state is highlight response
|
||||||
var opts = this.options.swaggerOptions;
|
var opts = this.options.swaggerOptions;
|
||||||
|
|||||||
8
dist/swagger-ui.min.js
vendored
8
dist/swagger-ui.min.js
vendored
File diff suppressed because one or more lines are too long
@@ -704,7 +704,7 @@ SwaggerUi.Views.OperationView = Backbone.View.extend({
|
|||||||
// adds curl output
|
// adds curl output
|
||||||
var curlCommand = this.model.asCurl(this.map, {responseContentType: contentType});
|
var curlCommand = this.model.asCurl(this.map, {responseContentType: contentType});
|
||||||
curlCommand = curlCommand.replace('!', '!');
|
curlCommand = curlCommand.replace('!', '!');
|
||||||
$( 'div.curl', $(this.el)).html('<pre>' + curlCommand + '</pre>');
|
$( 'div.curl', $(this.el)).html('<pre>' + _.escape(curlCommand) + '</pre>');
|
||||||
|
|
||||||
// only highlight the response if response is less than threshold, default state is highlight response
|
// only highlight the response if response is less than threshold, default state is highlight response
|
||||||
var opts = this.options.swaggerOptions;
|
var opts = this.options.swaggerOptions;
|
||||||
|
|||||||
Reference in New Issue
Block a user