From 6dd95ef4993ccfd96f4d0f315a0ad5d2c3ecf501 Mon Sep 17 00:00:00 2001 From: Matthew J Martin <19975+matmar10@users.noreply.github.com> Date: Sun, 21 Nov 2021 16:35:35 -0500 Subject: [PATCH] chore: remove unused file --- bin/schema-to-md | 30 ------------------------------ 1 file changed, 30 deletions(-) delete mode 100755 bin/schema-to-md diff --git a/bin/schema-to-md b/bin/schema-to-md deleted file mode 100755 index 08df7be..0000000 --- a/bin/schema-to-md +++ /dev/null @@ -1,30 +0,0 @@ -#!/usr/bin/env node - -const path = require('path'); -const {jsonschema2md} = require('@adobe/jsonschema2md'); -const $RefParser = require('@apidevtools/json-schema-ref-parser'); - -(async () => { - const basePath = path.join(__dirname, '/../lib/schema/yaml'); - const paths = [ - path.join(basePath, 'suite-config.json'), - path.join(basePath, 'suite.json'), - ]; - - const schemas = await Promise.all(paths.map(async (fileName) => { - const content = await $RefParser.dereference(fileName); - return { - content, - fileName - } - })); - - console.log(schemas); - - const result = jsonschema2md(schemas, { - includeReadme: true, - // header: true, - }); - - console.log(result); -})();