Skip to content

Commit 191d614

Browse files
committed
fix --exportIndex parameter parsing
1 parent f844024 commit 191d614

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bin/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ if (OpenAPI) {
4141
exportServices: JSON.parse(params.exportServices) === true,
4242
exportModels: JSON.parse(params.exportModels) === true,
4343
exportSchemas: JSON.parse(params.exportSchemas) === true,
44-
exportIndex: params.exportIndex,
44+
exportIndex: params.exportIndex ? JSON.parse(params.exportIndex) : undefined,
4545
indent: params.indent,
4646
postfix: params.postfix,
4747
request: params.request,

0 commit comments

Comments
 (0)