Skip to Content
0
Apr 16, 2018 at 08:36 AM

"actions" array seems to be ignored in gateway REST schema file

113 Views Last edit Apr 16, 2018 at 08:37 AM 2 rev

Hi everyone,

Came up with this issue recently, where mapping a property like this:

"device_data": { "type": "object", "mapTo": "value", "actions": [{ "type": "ADD", "mapTo": "capability_alternate_id", "value": "HR003" }, { "type": "ADD", "mapTo": "sensor_type_alternate_id", "value": 123123123 }, { "type": "ADD", "mapTo": "sensor_alternate_id", "value": "hrsens01" }], "properties": { "*": { "mapKeyTo": "property_name", "mapTo": "value" } } }

Makes "actions" array seems to be ignored, which does not happen with a single-measurament capability like this:

"user_uuid": { "type": "integer", "mapTo": "value", "actions": [{ "type": "ADD", "mapTo": "capability_alternate_id", "value": "HR001" }, { "type": "ADD", "mapTo": "sensor_type_alternate_id", "value": 123123123 }, { "type": "ADD", "mapTo": "sensor_alternate_id", "value": "hrsens01" }] }

Could you please indicate if I am doing something wrong?

Thanks,

Federico