Uploaded image for project: 'Help-Desk'
  1. Help-Desk
  2. HELP-8931

[fiware-stackoverflow] Why do attributes type change from float to number?

    Details

      Description

      Created question in FIWARE Q/A platform on 16-01-2017 at 18:01
      Please, ANSWER this question AT https://stackoverflow.com/questions/41681573/why-do-attributes-type-change-from-float-to-number

      Question:
      Why do attributes type change from float to number?

      Description:
      I've noticed that when I register entities with some 'float' attributes in Orion, after some updates the type is changed to 'number' instead of 'float'.

      For example:

      { "id":"my_entity",
      "type":"entity_type",
      "attr1":{
      "type":"float",
      "value":"0.54",
      "metadata":{}},
      "attr2":{
      "type":"Number",
      "value":44.3,
      "metadata":{}}}]

      In this case, when my_entity was registered, both types of attributes were 'float'. When some update was made in the value of the attr2, its type was changed to 'Number'. Is this the correct behavior?

        Activity

        Hide
        backlogmanager Backlog Manager added a comment -

        2017-05-22 15:12|CREATED monitor | # answers= 1, accepted answer= True

        Show
        backlogmanager Backlog Manager added a comment - 2017-05-22 15:12|CREATED monitor | # answers= 1, accepted answer= True
        Hide
        backlogmanager Backlog Manager added a comment -

        2017-05-22 18:08|UPDATED status: transition Answer| # answers= 1, accepted answer= True

        Show
        backlogmanager Backlog Manager added a comment - 2017-05-22 18:08|UPDATED status: transition Answer| # answers= 1, accepted answer= True
        Hide
        backlogmanager Backlog Manager added a comment -

        2017-05-22 21:08|UPDATED status: transition Finish| # answers= 1, accepted answer= True

        Show
        backlogmanager Backlog Manager added a comment - 2017-05-22 21:08|UPDATED status: transition Finish| # answers= 1, accepted answer= True

          People

          • Assignee:
            backlogmanager Backlog Manager
            Reporter:
            backlogmanager Backlog Manager
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: