Ver a proveniência

undid double stringify

bubble
Tony Tam há 10 anos
ascendente
cometimento
a39ab425bf
3 ficheiros alterados com 3 adições e 3 eliminações
  1. +1
    -1
      dist/swagger-ui.js
  2. +1
    -1
      dist/swagger-ui.min.js
  3. +1
    -1
      src/main/coffeescript/view/OperationView.coffee

+ 1
- 1
dist/swagger-ui.js Ver ficheiro

@@ -2096,7 +2096,7 @@ helpers = this.merge(helpers, Handlebars.helpers); data = data || {};
} else if (contentType === "application/json" || /\+json$/.test(contentType)) {
json = null;
try {
json = JSON.stringify(JSON.stringify(JSON.parse(content), null, " "));
json = JSON.stringify(JSON.parse(content), null, " ");
} catch (_error) {
e = _error;
json = "can't parse JSON. Raw result:\n\n" + content;


+ 1
- 1
dist/swagger-ui.min.js
A apresentação das diferenças no ficheiro foi suprimida por ser demasiado grande
Ver ficheiro


+ 1
- 1
src/main/coffeescript/view/OperationView.coffee Ver ficheiro

@@ -368,7 +368,7 @@ class OperationView extends Backbone.View
else if contentType is "application/json" || /\+json$/.test(contentType)
json = null
try
json = JSON.stringify(JSON.stringify(JSON.parse(content), null, " "))
json = JSON.stringify(JSON.parse(content), null, " ")
catch e
json = "can't parse JSON. Raw result:\n\n" + content
code = $('<code />').text(json)


Carregando…
Cancelar
Guardar