This commit is contained in:
Tony Tam
2014-02-03 08:28:22 -08:00
parent 7dd5142df2
commit 2378b176f5
2 changed files with 8 additions and 4 deletions

8
dist/lib/swagger.js vendored
View File

@@ -53,7 +53,9 @@
useJQuery: this.useJQuery, useJQuery: this.useJQuery,
url: this.url, url: this.url,
method: "get", method: "get",
headers: {}, headers: {
accept: "application/json"
},
on: { on: {
error: function(response) { error: function(response) {
if (_this.url.substring(0, 4) !== 'http') { if (_this.url.substring(0, 4) !== 'http') {
@@ -304,7 +306,9 @@
url: this.url, url: this.url,
method: "get", method: "get",
useJQuery: this.useJQuery, useJQuery: this.useJQuery,
headers: {}, headers: {
accept: "application/json"
},
on: { on: {
error: function(response) { error: function(response) {
return _this.api.fail("Unable to read api '" + _this.name + "' from path " + _this.url + " (server returned " + response.statusText + ")"); return _this.api.fail("Unable to read api '" + _this.name + "' from path " + _this.url + " (server returned " + response.statusText + ")");

View File

@@ -1,6 +1,6 @@
{ {
"name": "swagger-ui", "name": "swagger-ui",
"version": "2.0.4", "version": "2.0.5",
"description": "Swagger UI is a dependency-free collection of HTML, Javascript, and CSS assets that dynamically generate beautiful documentation from a Swagger-compliant API", "description": "Swagger UI is a dependency-free collection of HTML, Javascript, and CSS assets that dynamically generate beautiful documentation from a Swagger-compliant API",
"scripts": { "scripts": {
"build": "PATH=$PATH:./node_modules/.bin cake dist", "build": "PATH=$PATH:./node_modules/.bin cake dist",
@@ -19,7 +19,7 @@
"readmeFilename": "README.md", "readmeFilename": "README.md",
"dependencies": { "dependencies": {
"coffee-script": "~1.5.0", "coffee-script": "~1.5.0",
"swagger-client": "2.0.10", "swagger-client": "2.0.11",
"handlebars": "~1.0.10", "handlebars": "~1.0.10",
"less": "~1.4.2" "less": "~1.4.2"
} }