Skip to content

Commit

Permalink
fix: add logic to handle the param which isArray and isJson for smapi…
Browse files Browse the repository at this point in the history
… commands
  • Loading branch information
RonWang committed Apr 16, 2020
1 parent efa62b2 commit ebbc2fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/commands/smapi/cli-customization-processor.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ class CliCustomizationProcessor {
}

_addCustomizedParameter(customizationMetadata, customizedParameter) {
const isArray = customizedParameter.type === 'array';
const isArray = customizedParameter.type === 'array' && !customizedParameter.json; // the array of object is treated as json type
const isNumber = ['number', 'integer'].includes(customizedParameter.type);
const isBoolean = customizedParameter.type === 'boolean';
const flags = { isArray, isNumber, isBoolean };
Expand Down

0 comments on commit ebbc2fe

Please sign in to comment.