Merge pull request #1112 from 3scale/op-execute

Pass swagger options to swagger-js Operation#execute method
This commit is contained in:
Tony Tam
2015-05-08 12:03:56 -07:00

View File

@@ -313,7 +313,7 @@ SwaggerUi.Views.OperationView = Backbone.View.extend({
if (isFileUpload) { if (isFileUpload) {
return this.handleFileUpload(map, form); return this.handleFileUpload(map, form);
} else { } else {
return this.model['do'](map, opts, this.showCompleteStatus, this.showErrorStatus, this); return this.model.execute(map, this.options.swaggerOptions || {}, this.showCompleteStatus, this.showErrorStatus, this);
} }
} }
}, },