-
Notifications
You must be signed in to change notification settings - Fork 8
Open
Description
Hey plugin is really good.
I cannot give one base path for json schema directory. It will be good to give an option in apidoc.json like
"sampleJsonSchemaPath": "./schema/"
so we don't need to repeat our self in apidoc comment section.
In index.js file after getting schema we can check for the option in apidoc.json file
CODE:
let relativePath = path.join(path.dirname(filename), values.path)
if (app.packageInfos.sampleJsonSchemaPath) {
relativePath = app.packageInfos.sampleJsonSchemaPath + values.path
path.join(relativePath)
}
const data = fs.readFileSync( relativePath, 'utf8').toString();
Metadata
Metadata
Assignees
Labels
No labels