apidoc-plugin-schema
Advanced tools
Comparing version
@@ -25,4 +25,5 @@ const fs = require('fs'); | ||
if (schemas[values.schema]) { | ||
const data = fs.readFileSync( path.join(path.dirname(filename), values.path), 'utf8').toString(); | ||
const new_elements = schemas[values.schema](data, values.element, values.group); | ||
const relative_path = path.join(path.dirname(filename), values.path); | ||
const data = fs.readFileSync(relative_path, 'utf8').toString(); | ||
const new_elements = schemas[values.schema](relative_path, data, values.element, values.group); | ||
@@ -29,0 +30,0 @@ // do not use concat |
{ | ||
"name":"apidoc-plugin-schema", | ||
"version":"0.1.4", | ||
"version":"0.1.5", | ||
"description": "Schema Plugin for apidoc.", | ||
@@ -5,0 +5,0 @@ "copyright": "Copyright (c) 2016 will Farrell. All rights reserved.", |
11114
0.48%266
0.38%