From dfbcc807315252637973058a67100c733519aa24 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6ren=20Beye?= Date: Wed, 5 May 2021 16:51:58 +0200 Subject: [PATCH] JSON is also valid YAML Since YAML is a superset of JSON, we can also accept json files here --- packages/lib/src/utils.js | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/lib/src/utils.js b/packages/lib/src/utils.js index a4fe2d3..50c4efe 100644 --- a/packages/lib/src/utils.js +++ b/packages/lib/src/utils.js @@ -64,6 +64,7 @@ export async function extractAnnotations(filePath, encoding = 'utf8') { switch (ext) { case '.yml': case '.yaml': + case '.json': yaml.push(fileContent); break;