panorama/spec/generate.js
2023-03-27 21:34:46 -05:00

14 lines
354 B
JavaScript

const JsonSchemaStaticDocs = require("json-schema-static-docs");
(async () => {
let jsonSchemaStaticDocs = new JsonSchemaStaticDocs({
inputPath: "./spec",
outputPath: "./docs/src/generated/spec",
ajvOptions: {
allowUnionTypes: true,
},
});
await jsonSchemaStaticDocs.generate();
console.log("Documents generated.");
})();