Quellcode durchsuchen

removed console log, updated swagger.js

bubble
Tony Tam vor 11 Jahren
Ursprung
Commit
b2637fc4bc
5 geänderte Dateien mit 13 neuen und 5 gelöschten Zeilen
  1. +6
    -1
      dist/lib/swagger.js
  2. +0
    -1
      dist/swagger-ui.js
  3. +1
    -1
      dist/swagger-ui.min.js
  4. +6
    -1
      lib/swagger.js
  5. +0
    -1
      src/main/coffeescript/view/OperationView.coffee

+ 6
- 1
dist/lib/swagger.js Datei anzeigen

@@ -216,6 +216,7 @@
produces = [];
consumes = [];
this.path = this.api.resourcePath != null ? this.api.resourcePath : resourceObj.path;
console.log('using path ' + this.path);
this.description = resourceObj.description;
parts = this.path.split("/");
this.name = parts[parts.length - 1].replace('.{format}', '');
@@ -230,7 +231,11 @@
if (this.path == null) {
this.api.fail("SwaggerResources must have a path.");
}
this.url = this.api.basePath + this.path.replace('{format}', 'json');
if (this.path.substring(0, 4) === 'http') {
this.url = this.path.replace('{format}', 'json');
} else {
this.url = this.api.basePath + this.path.replace('{format}', 'json');
}
this.api.progress('fetching resource ' + this.name + ': ' + this.url);
obj = {
url: this.url,


+ 0
- 1
dist/swagger-ui.js Datei anzeigen

@@ -1757,7 +1757,6 @@ templates['status_code'] = template(function (Handlebars,depth0,helpers,partials
_ref = this.model.parameters;
for (_i = 0, _len = _ref.length; _i < _len; _i++) {
param = _ref[_i];
console.log("looking at " + param.dataType);
if (param.dataType.toLowerCase() === 'file') {
if (!contentTypeModel.consumes) {
console.log("set content type ");


+ 1
- 1
dist/swagger-ui.min.js
Datei-Diff unterdrückt, da er zu groß ist
Datei anzeigen


+ 6
- 1
lib/swagger.js Datei anzeigen

@@ -216,6 +216,7 @@
produces = [];
consumes = [];
this.path = this.api.resourcePath != null ? this.api.resourcePath : resourceObj.path;
console.log('using path ' + this.path);
this.description = resourceObj.description;
parts = this.path.split("/");
this.name = parts[parts.length - 1].replace('.{format}', '');
@@ -230,7 +231,11 @@
if (this.path == null) {
this.api.fail("SwaggerResources must have a path.");
}
this.url = this.api.basePath + this.path.replace('{format}', 'json');
if (this.path.substring(0, 4) === 'http') {
this.url = this.path.replace('{format}', 'json');
} else {
this.url = this.api.basePath + this.path.replace('{format}', 'json');
}
this.api.progress('fetching resource ' + this.name + ': ' + this.url);
obj = {
url: this.url,


+ 0
- 1
src/main/coffeescript/view/OperationView.coffee Datei anzeigen

@@ -32,7 +32,6 @@ class OperationView extends Backbone.View
contentTypeModel.produces = @model.produces

for param in @model.parameters
console.log "looking at " + param.dataType
if param.dataType.toLowerCase() == 'file'
if !contentTypeModel.consumes
console.log "set content type "


Laden…
Abbrechen
Speichern