Skip to content
This repository has been archived by the owner on Dec 15, 2023. It is now read-only.

Commit

Permalink
Merge pull request #49 from Azure/fix-report-issue
Browse files Browse the repository at this point in the history
Fix report issue
  • Loading branch information
RodgeFu authored Mar 30, 2020
2 parents 55df3d9 + 0997946 commit f33830c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/helper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ export class Helper {
return isUndefined(o) ? '{undefined}' : isNull(o) ? '{null}' : o.toString();
};

let generateCliValue = (o: any, i: number) => o.language.default.name + `${isNullOrUndefined(o.schema) ? '' : '(' + o.schema.language.default.name + ')'}` +
let generateCliValue = (o: any, i: number) => o.language.default.name + `${isNullOrUndefined(o.schema) ? '' : ('(' + o.schema.language.default.name + '^' + o.schema.type + ')')}` +
(isNullOrUndefined(o.language.cli) ? '' : Object.getOwnPropertyNames(o.language.cli)
.filter(key => o.language.cli[key] !== o.language.default[key])
.reduce((pv, cv, ci) => pv.concat((ci === 0 ? (NEW_LINE + tab(i) + 'cli:') : '') +
Expand Down

0 comments on commit f33830c

Please sign in to comment.