From 4a18a8bff59b394465a7bce4406bc0dd5b511a0b Mon Sep 17 00:00:00 2001 From: kyle Date: Fri, 19 Jan 2018 19:01:19 -0600 Subject: [PATCH] fix(resolver): accept yaml when fetching documents --- src/specmap/lib/refs.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()) } /**