edgexfoundry/go-mod-core-contracts

Modify the data type of max and min in Value Properties to float64

Closed this issue ยท 3 comments

๐Ÿš€ Feature Request

Relevant Package [REQUIRED]

This feature request is for core-metadata

Description [REQUIRED]

We have the Profile model change in
#770
The change of max and min are missing, and they should be numeric value

@lenny-intel @iain-anderson after more investigation, @hahattan noticed the min and max default value will be 0 in golang, if we change it to float64. It will cause the incorrect evaluation.

Thus, we decided to revert this change for now.

Can it work if you make them *float64 and check for nil pointers?

yes, @iain-anderson , it should work. A new issue is opened for it.
#821