Skip to content

Commit

Permalink
Merge pull request #201 from syroegkin/dev
Browse files Browse the repository at this point in the history
release
  • Loading branch information
syroegkin authored Apr 14, 2023
2 parents 94dd470 + fdac96c commit 8a7b473
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,8 @@ export function transfromSwagger(inputDoc: AllSwaggerDocumentVersions, options:
*/
export async function transformFile(options: Options): Promise<string> {
const swaggerParser = new SwaggerParser();
const $refs: SwaggerParser.$Refs = await swaggerParser.resolve(options.input);
const bundle = await swaggerParser.bundle(options.input);
const $refs: SwaggerParser.$Refs = await swaggerParser.resolve(bundle);
const dereferencedDocument = partiallyDereference(swaggerParser.api, $refs);
const markdown = transfromSwagger(dereferencedDocument, options);

Expand Down

0 comments on commit 8a7b473

Please sign in to comment.