Closed
Description
autocast feature is performed by
iotagent-node-lib/lib/services/ngsi/ngsiUtils.js
Lines 98 to 134 in 9557e75
It was introduced by dcalvoalonso#7 in 2.7.0 release of iota-node-lib
Currently is performing casting based on some attribute types (Boolean, Number, None) which is not the best.
But instead of that (which is not a best approach) control cast per attribute is proposed:
{
"name": "myNumber",
"type": "MyCustomType",
"autocastType": "Number",
"autocast" : true
}
as was suggested in #1020 (comment)
(autocast feature is used by iotagent-ul, but not used by iotagent-json)
Metadata
Metadata
Assignees
Labels
No labels