Simple Variable Types for variables.json

We call the following variable types “simple” because they’re standard, predefined datatypes.

Type NameDescriptionType Declaration
BooleanTypeReferences true or false values."variableType" : { "type": "BooleanType" }
StringTypeReferences a string. Can use Array<String> to define restricted valid values for the string. If null or empty, any value is allowed."variableType" : { "type": "StringType" }
NumberTypeReferences numerical values."variableType" : { "type": "NumberType" }
NumberType (Range)References range of numerical values. Use min to specify minimum value and max to specify maximum value. Optional."variableType" : { "type": "NumberType", "min":0, "max":100 }

Enumerated Values 

The StringType and NumberType can both contain lists of values, enums, and an optional array of labels for those values, enumsLabels. The order of values in enumsLabels must match the order of values in enums.

Example 

1"Colors": {
2    "label": "Select a color",
3    "variableType": {
4      "type": "StringType",
5      "enums": [ "#ff0000", "#00ff00", "#0000ff" ],
6      "enumsLabels": [ "Red", "Green", "Blue" ]
7    }
8}