Skip to content

Commit

Permalink
Forgot to add the default parameter in loadSpec
Browse files Browse the repository at this point in the history
  • Loading branch information
jy95 committed Dec 19, 2019
1 parent ba6576d commit 7fc89a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/framework/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ export class OpenAPIFramework {
};
}

private loadSpec(filePath: string | object, $refParser: { mode: 'bundle' | 'dereference' }): Promise<OpenAPIV3.Document> {
private loadSpec(filePath: string | object, $refParser: { mode: 'bundle' | 'dereference' } = { mode: 'bundle'}): Promise<OpenAPIV3.Document> {
// 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') {
Expand Down

0 comments on commit 7fc89a9

Please sign in to comment.