(idx, config_lines, indent, param_prop, errors)
return False
With idx pointing to the beginning of a 'key: value' variable declaration, this function returns true
    if the variable is declared as an object in the @param declaration and if value is not on the same line.
With idx pointing to the beginning of a 'key: value' variable declaration, this function returns true
    if the variable is declared as an object in the
With idx pointing to the beginning of a key : value variable declaration this function returns true if the variable is declared as an object in the
def _is_object(idx, config_lines, indent, param_prop, errors):
    """With idx pointing to the beginning of a 'key: value' variable declaration, this function returns true
    if the variable is declared as an object in the @param declaration and if value is not on the same line.
    """

    if not is_exactly_indented(config_lines[idx], indent):
        errors.append(ValidatorError("Content is not correctly indented", idx))
        return False

    current_line = config_lines[idx][indent:]

    if param_prop.type_name == 'object':
        # The variable to be parsed is an object and thus requires to go recursively
        if re.match(OBJECT_REGEX, current_line) is None:
            err_string = f"Parameter {param_prop.var_name} is declared as object but isn't one"
            errors.append(ValidatorError(err_string, idx))
            return False
        return True

    return False
def _is_object ( idx , config_lines , indent , param_prop , errors ) : if not is_exactly_indented ( config_lines [ idx ] , indent ) : errors . append ( ValidatorError ( "Content is not correctly indented" , idx ) ) return False current_line = config_lines [ idx ] [ indent : ] if param_prop . type_name == 'object' : # The variable to be parsed is an object and thus requires to go recursively if re . match ( OBJECT_REGEX , current_line ) is None : err_string = f"Parameter {param_prop.var_name} is declared as object but isn't one" errors . append ( ValidatorError ( err_string , idx ) ) return False return True return False