Merge pull request #2755 from buunguyen/master

Use loadSpec option of latest swagger client
This commit is contained in:
shockey
2017-03-25 00:57:46 -07:00
committed by GitHub
2 changed files with 4 additions and 2 deletions

View File

@@ -70,7 +70,7 @@
"reselect": "2.5.3",
"serialize-error": "2.0.0",
"shallowequal": "0.2.2",
"swagger-client": "^3.0.2",
"swagger-client": "^3.0.3",
"whatwg-fetch": "0.11.1",
"worker-loader": "^0.7.1",
"xml": "1.0.1",

View File

@@ -11,7 +11,9 @@ export default function downloadUrlPlugin (toolbox) {
let { fetch } = fn
url = url || specSelectors.url()
specActions.updateLoadingStatus("loading")
fetch(url, {
fetch({
url,
loadSpec: true,
headers: {
"Accept": "application/json"
}