Skip to content

Commit

Permalink
Fix passing --internal-refs flag
Browse files Browse the repository at this point in the history
  • Loading branch information
djtarazona committed Jun 17, 2019
1 parent 4c32ed4 commit c63b233
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion resolve.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const command = async (file, cmd) => {

const spec = await loader.readOrError(
file,
buildLoaderOptions(jsonSchema, verbose)
buildLoaderOptions(jsonSchema, verbose, internalRefs)
);
const content = yaml.stringify(spec);

Expand Down Expand Up @@ -54,6 +54,7 @@ const buildLoaderOptions = (jsonSchema, verbose, internalRefs) => {
};
if (jsonSchema) options.filters.push(fromJsonSchema);
if (internalRefs) options.resolveInternal = true;

return options;
}

Expand Down

0 comments on commit c63b233

Please sign in to comment.