[Backlogmanager] [FIWARE-JIRA] (HELP-8931) [fiware-stackoverflow] Why do attributes type change from float to number?

Fernando Lopez (JIRA) jira-help-desk at jira.fiware.org
Wed Sep 12 11:35:03 CEST 2018


     [ https://jira.fiware.org/browse/HELP-8931?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Fernando Lopez updated HELP-8931:
---------------------------------
    Description: 
Created question in FIWARE Q/A platform on 16-01-2017 at 18:01
{color: red}Please, ANSWER this question AT{color} 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?


  was:

Created question in FIWARE Q/A platform on 16-01-2017 at 18:01
{color: red}Please, ANSWER this question AT{color} 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?


     HD-Enabler: Orion

> [fiware-stackoverflow] Why do attributes type change from float to number?
> --------------------------------------------------------------------------
>
>                 Key: HELP-8931
>                 URL: https://jira.fiware.org/browse/HELP-8931
>             Project: Help-Desk
>          Issue Type: Monitor
>          Components: FIWARE-TECH-HELP
>            Reporter: Backlog Manager
>              Labels: attributes, fiware, fiware-orion, types
>
> Created question in FIWARE Q/A platform on 16-01-2017 at 18:01
> {color: red}Please, ANSWER this question AT{color} 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?



--
This message was sent by Atlassian JIRA
(v6.4.1#64016)


More information about the Backlogmanager mailing list

You can get more information about our cookies and privacy policies clicking on the following links: Privacy policy   Cookies policy