class CybridApiId::ApplicationIdpModel::EnumAttributeValidator

def initialize(datatype, allowable_values)

def initialize(datatype, allowable_values)
  @allowable_values = allowable_values.map do |value|
    case datatype.to_s
    when /Integer/i
      value.to_i
    when /Float/i
      value.to_f
    else
      value
    end
  end
end

def valid?(value)

def valid?(value)
  !value || allowable_values.include?(value)
end