From 0997946458f94ce45404e200cd08e0c45b189b0e Mon Sep 17 00:00:00 2001 From: Rodge Fu Date: Mon, 30 Mar 2020 01:10:53 +0800 Subject: [PATCH] fix simplified report --- src/helper.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/helper.ts b/src/helper.ts index eb8db8c..fe2e7dc 100644 --- a/src/helper.ts +++ b/src/helper.ts @@ -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:') : '') +