15 lines
354 B
JavaScript
15 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.");
|
||
|
})();
|