def check_stream(io_stream)
      yaml_data = io_stream.read
      error_array = []

      valid = check_data(yaml_data, error_array)
      errors[''] = error_array unless error_array.empty?

      valid
    end
def check_stream(io_stream)
      yaml_data = io_stream.read
      error_array = []

      valid = check_data(yaml_data, error_array)
      errors[''] = error_array unless error_array.empty?

      valid
    end
Check an IO stream