|  Developer
Updated on November 8, 2021

Custom types

dictionary

  • Specific type for mapping multiple values with same type within item
  • ‘value’ – map of unique string keys to elements of the supported types
  • ‘enum’ – array of supported token values
  • ‘valueType’ – “dictionary”
  • ‘elementType’ – valid value type of elements in the dictionary. If element type is container (dictionary or array), split subtypes by ‘.’
Edit
				
					{
    ...
    "valueType": "dictionary",
    "elementType": "array.daily_interval",
    "value": {
        "1": [
            {
                "startDateTime": "2019-11-30T21:00:00",
                "stopDateTime": "2019-11-30T22:00:00",
            },
            {
                "startDateTime": "2020-11-30T21:00:00",
                "stopDateTime": "2020-11-30T22:00:00",
            }
        ],
        "3": [
            {
                "startDateTime": "2019-10-30T21:00:00",
                "stopDateTime": "2019-10-30T22:00:00",
            }
        ],
    },
    ...
}				
			
Edit
				
					{
    ...
    "valueType": "dictionary",
    "elementType": "temperature"
    "value": {
        "key_1": {
            "value": 36,
            "scale": "celsius"
        },
        "key_2": {
            "value": 6,
            "scale": "fahrenheit"
        },
    },
    ...
}