Skip to content

Commit

Permalink
refactor(schema): filter out refs
Browse files Browse the repository at this point in the history
  • Loading branch information
trieloff committed Dec 3, 2019
1 parent 50d037b commit 37c1d40
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ const {
const traverse = require('./lib/traverseSchema');
const extract = require('./lib/extractID');
const generate = require('./lib/generateName');
const filterRefs = require('./lib/filterRefs');

const { error, info } = logger;

Expand Down Expand Up @@ -156,6 +157,7 @@ readdirp.promise(schemaPath, { root: schemaPath, fileFilter: `*.${schemaExtensio
// find contained schemas
map(traverse),
flat,
filterRefs,
generate,
);

Expand Down

0 comments on commit 37c1d40

Please sign in to comment.