Merge branch 'fix-1109' into develop_2.0
This commit is contained in:
Vendored
+1
-5
@@ -69,15 +69,11 @@
|
||||
/*
|
||||
var apiKey = "myApiKeyXXXX123456789";
|
||||
$('#input_apiKey').val(apiKey);
|
||||
addApiKeyAuthorization();
|
||||
*/
|
||||
|
||||
window.swaggerUi.load();
|
||||
|
||||
// Add authorization if auth input is not empty
|
||||
if ($('#input_apiKey').val().length) {
|
||||
addApiKeyAuthorization();
|
||||
}
|
||||
|
||||
function log() {
|
||||
if ('console' in window) {
|
||||
console.log.apply(console, arguments);
|
||||
|
||||
Vendored
+374
-384
File diff suppressed because one or more lines are too long
Vendored
+8
-8
File diff suppressed because one or more lines are too long
@@ -593,6 +593,12 @@ SwaggerUi.Views.OperationView = Backbone.View.extend({
|
||||
code = $('<code />').html(_.escape(content));
|
||||
pre = $('<pre class="xml" />').append(code);
|
||||
|
||||
// Plain Text
|
||||
} else if (/text\/plain/.test(contentType)) {
|
||||
code = $('<code />').text(content);
|
||||
pre = $('<pre class="plain" />').append(code);
|
||||
|
||||
|
||||
// Image
|
||||
} else if (/^image\//.test(contentType)) {
|
||||
pre = $('<img>').attr('src', url);
|
||||
|
||||
Reference in New Issue
Block a user