Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion lib/json-schema-static-docs.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
const extend = require("extend");
const path = require("path");
const fastGlob = require("fast-glob");
const Loader = require("./loader");
const Resolver = require("./resolver");
const Merger = require("./merger");
Expand Down Expand Up @@ -34,10 +35,14 @@ var JsonSchemaStaticDocs = function (options) {
};

JsonSchemaStaticDocs.prototype.generate = async function () {
const inputPathPattern = fastGlob.convertPathToPattern(
this._options.inputPath
);
const inputPathGlob = path.join(
this._options.inputPath,
inputPathPattern,
this._options.inputFileGlob
);

// clean up path (strip leading ./ etc)
const cleanInputPath = path.join(this._options.inputPath);

Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"ajv": "^8.12.0",
"ajv-formats": "^2.1.1",
"extend": "^3.0.2",
"fast-glob": "^3.2.12",
"fast-glob": "^3.3.1",
"handlebars": "^4.7.7",
"jsonpointer": "^5.0.1",
"lodash": ">=4.17.21",
Expand Down