Skip to content

Commit

Permalink
resolve relative references
Browse files Browse the repository at this point in the history
Add path to ParserOptions to resolve relative paths.
  • Loading branch information
frenkan authored Mar 31, 2023
1 parent d936073 commit 920f759
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ const parseAsyncAPIFile = async (pathToFile: string, options: AsyncAPIPluginOpti
throw new Error(`Failed to read file with provided path`);
}

const doc = await parse(asyncAPIFile);
const doc = await parse(asyncAPIFile, { path: pathToFile });

const service = getServiceFromAsyncDoc(doc);
const events = getAllEventsFromAsyncDoc(doc, options);
Expand Down

0 comments on commit 920f759

Please sign in to comment.