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

Commit

Permalink
fix simplified report
Browse files Browse the repository at this point in the history
  • Loading branch information
RodgeFu committed Mar 29, 2020
1 parent 3e24454 commit 0997946
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 + '-' + o.schema.type + ')'}` +
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 0997946

Please sign in to comment.