Skip to content

Commit d615bf0

Browse files
authored
fix(resolver): accept yaml when fetching documents (swagger-api#1232)
1 parent 242ef2b commit d615bf0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/specmap/lib/refs.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ function getDoc(docPath) {
254254
* @api public
255255
*/
256256
function fetchJSON(docPath) {
257-
return fetch(docPath, {headers: {Accept: 'application/json'}, loadSpec: true}).then(res => res.json())
257+
return fetch(docPath, {headers: {Accept: 'application/json, application/yaml'}, loadSpec: true}).then(res => res.json())
258258
}
259259

260260
/**

0 commit comments

Comments
 (0)