def has_keys?(key, required_keys)
      raise_error(type: "contains.keys", required: required_keys, key: key) if (validator.datas[key].keys & required_keys) != required_keys
    end
def has_keys?(key, required_keys)
      raise_error(type: "contains.keys", required: required_keys, key: key) if (validator.datas[key].keys & required_keys) != required_keys
    end
Checks if the value associated with the given key has the given required keys.
 @param [Object] key the key associated with the value to check.
 @param [Array]  required_keys the keys that the initial Hash typed value should contain.
 @raise [ArgumentError] if the initial value has not each and every one of the given keys.