diff --git a/dtos/resourceproperties.go b/dtos/resourceproperties.go index e4d3d1af..afdeaf6b 100644 --- a/dtos/resourceproperties.go +++ b/dtos/resourceproperties.go @@ -15,8 +15,8 @@ type ResourceProperties struct { ValueType string `json:"valueType" yaml:"valueType" validate:"required,edgex-dto-value-type"` ReadWrite string `json:"readWrite" yaml:"readWrite" validate:"required,oneof='R' 'W' 'RW' 'WR'"` Units string `json:"units,omitempty" yaml:"units"` - Minimum float64 `json:"minimum,omitempty" yaml:"minimum"` - Maximum float64 `json:"maximum,omitempty" yaml:"maximum"` + Minimum string `json:"minimum,omitempty" yaml:"minimum"` + Maximum string `json:"maximum,omitempty" yaml:"maximum"` DefaultValue string `json:"defaultValue,omitempty" yaml:"defaultValue"` Mask uint64 `json:"mask,omitempty" yaml:"mask"` Shift int64 `json:"shift,omitempty" yaml:"shift"` diff --git a/models/resourceproperties.go b/models/resourceproperties.go index 9ee4d588..09393edd 100644 --- a/models/resourceproperties.go +++ b/models/resourceproperties.go @@ -12,8 +12,8 @@ type ResourceProperties struct { ValueType string ReadWrite string Units string - Minimum float64 - Maximum float64 + Minimum string + Maximum string DefaultValue string Mask uint64 Shift int64