Skip to content

Commit

Permalink
add deasync comment
Browse files Browse the repository at this point in the history
  • Loading branch information
Carmine DiMascio committed Nov 30, 2019
1 parent 8753b9e commit c70b59f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/framework/openapi.spec.loader.ts
Expand Up @@ -50,6 +50,10 @@ export class OpenApiSpecLoader {
done = true;
});

// Deasync should be used here any nowhere else!
// it is an optional peer dep
// Only necessary for those looking to use a blocking
// intial openapi parse to resolve json-schema-refs
require('deasync').loopWhile(() => !done);

if (savedError) throw savedError;
Expand Down

0 comments on commit c70b59f

Please sign in to comment.