# File lib/deltacloud/hardware_profile.rb, line 71
      def valid?(v)
        v = convert_property_value_type(v)
        case kind
          # NOTE:
          # Currently we cannot validate fixed values because of UI
          # limitation. In UI we have multiple hwp_* properties which overide
          # each other.
          # Then provider have one 'static' hardware profile and one
          # 'customizable' when user select the static one the UI also send
          # values from the customizable one (which will lead to a validation
          # error because validation algorith will think that client want to
          # overide fixed values.
          #
          # when :fixed then (v == @default.to_s)
          when :fixed then true
          when :range then match_type?(first, v) and (first..last).include?(v)
          when :enum then match_type?(values.first, v) and values.include?(v)
          else false
        end
      end