diff --git a/src/specmap/lib/refs.js b/src/specmap/lib/refs.js index 5b32ebc09..9ad5ceeb1 100644 --- a/src/specmap/lib/refs.js +++ b/src/specmap/lib/refs.js @@ -254,7 +254,7 @@ function getDoc(docPath) { * @api public */ function fetchJSON(docPath) { - return fetch(docPath, {headers: {Accept: 'application/json'}, loadSpec: true}).then(res => res.json()) + return fetch(docPath, {headers: {Accept: 'application/json, application/yaml'}, loadSpec: true}).then(res => res.json()) } /**