Skip to content

Commit

Permalink
Dereference only, not bundle, otherwise deref() cries; fix
Browse files Browse the repository at this point in the history
  • Loading branch information
pateketrueke committed May 31, 2017
1 parent 36ed64b commit 29a4a66
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions ts/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,12 @@ jsf.resolve = <jsfAPI>function(schema: JsonSchema, refs?: any, cwd?: string) {
cwd = cwd.replace(/\/+$/, '') + '/';

return $RefParser
.bundle(schema, { path: cwd })
.then((sub) => jsf(sub, refs));
.dereference(schema, {
path: cwd,
dereference: {
circular: 'ignore',
},
}).then((sub) => jsf(sub, refs));
};

jsf.utils = utils;
Expand Down

0 comments on commit 29a4a66

Please sign in to comment.