diff --git a/sdk/src/CloudApp.js b/sdk/src/CloudApp.js index 2438e5cb9377229a9b61d32cddf9a8598bcfb0bc..bddaaa6eff83c4ddc3a290cf7228a035bf4d0a27 100644 --- a/sdk/src/CloudApp.js +++ b/sdk/src/CloudApp.js @@ -226,6 +226,10 @@ class CloudApp { } let schema = { + mute: [{ + type: 'number', + valueMap: [0,1] + }], fps: [{ type: 'number', min: 10, @@ -282,6 +286,10 @@ class CloudApp { return `${name} should be smaller than ${rule.max}.`; } + if (rule.valueMap !== undefined && !rule.valueMap.includes(numberVal)) { + return `${name} must be 0 or 1.`; + } + break; }