Skip to content
Snippets Groups Projects
Commit 72953bf6 authored by Lars Trieloff's avatar Lars Trieloff
Browse files

[trivial] refactor: rename load into process

parent 465eab91
No related branches found
No related tags found
No related merge requests found
...@@ -87,7 +87,7 @@ if (target.isDirectory()) { ...@@ -87,7 +87,7 @@ if (target.isDirectory()) {
return Promise.reduce(files, readSchemaFile, schemaPathMap) return Promise.reduce(files, readSchemaFile, schemaPathMap)
.then(schemaMap => { .then(schemaMap => {
logger.info('finished reading all *.schema.json files in %s, beginning processing….', schemaPath); logger.info('finished reading all *.schema.json files in %s, beginning processing….', schemaPath);
return Schema.load(schemaMap, schemaPath, outDir, schemaDir, metaElements); return Schema.process(schemaMap, schemaPath, outDir, schemaDir, metaElements);
}) })
.then(() => { .then(() => {
logger.info('Processing complete.'); logger.info('Processing complete.');
...@@ -108,7 +108,7 @@ if (target.isDirectory()) { ...@@ -108,7 +108,7 @@ if (target.isDirectory()) {
Schema.setAjv(ajv); Schema.setAjv(ajv);
Schema.setSchemaPathMap(schemaPathMap); Schema.setSchemaPathMap(schemaPathMap);
logger.info('finished reading %s, beginning processing....', schemaPath); logger.info('finished reading %s, beginning processing....', schemaPath);
return Schema.load(schemaMap, schemaPath, outDir, schemaDir, metaElements); return Schema.process(schemaMap, schemaPath, outDir, schemaDir, metaElements);
}) })
.then(() => { .then(() => {
logger.info('Processing complete.'); logger.info('Processing complete.');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment