Skip to content

Commit

Permalink
Fix specEndpoints handling
Browse files Browse the repository at this point in the history
  • Loading branch information
mmalecki committed Jan 16, 2020
1 parent 8ac68a4 commit bbd1457
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/completers/openapi.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const prefixWith = prefix => str => prefix + str
class OpenAPIPlugin {
constructor ({ specEndpoints }) {
this.spec = undefined
this.specEndpoints = [specEndpoints].flat() || OPENAPI_SPEC_PATHS
this.specEndpoints = specEndpoints ? [specEndpoints].flat() : OPENAPI_SPEC_PATHS
this.paths = []
this.methods = []
this.pathsByMethod = {}
Expand Down

0 comments on commit bbd1457

Please sign in to comment.