def check_if_not_duplicate(key, values, name)
      if values.key? key
        raise SwaggerInvalidException.new("#{name} already exist for #{key} with value [#{values[key]}]")
      end
    end
def check_if_not_duplicate(key, values, name)
      if values.key? key
        raise SwaggerInvalidException.new("#{name} already exist for #{key} with value [#{values[key]}]")
      end
    end
Check if a value does not exist in a hash and throw an Exception
 @param key the key to validate
 @param values [Hash] the existing keys
 @param name [String] the valud name for the error message