From 7fc89a9cfe3b23e53ec537fc3adc20b30caa57be Mon Sep 17 00:00:00 2001 From: jy95 Date: Thu, 19 Dec 2019 03:31:41 +0100 Subject: [PATCH] Forgot to add the default parameter in loadSpec --- src/framework/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/framework/index.ts b/src/framework/index.ts index 1a02aa50..53a63b64 100644 --- a/src/framework/index.ts +++ b/src/framework/index.ts @@ -71,7 +71,7 @@ export class OpenAPIFramework { }; } - private loadSpec(filePath: string | object, $refParser: { mode: 'bundle' | 'dereference' }): Promise { + private loadSpec(filePath: string | object, $refParser: { mode: 'bundle' | 'dereference' } = { mode: 'bundle'}): Promise { // Because of this issue ( https://github.com/APIDevTools/json-schema-ref-parser/issues/101#issuecomment-421755168 ) // We need this workaround ( use '$RefParser.dereference' instead of '$RefParser.bundle' ) if asked by user if (typeof filePath === 'string') {