def _xbrli_decimal_item_type_validator(value):
    """XBRLI decimal validator."""
    errors = []
    if type(value) is str:
        try:
            result = float(value)
        except ValueError as ex:
            errors += ["'{}' is not a valid decimal value.".format(value)]
    elif type(value) is not int:
        errors += ["'{}' is not a valid decimal value.".format(value)]
    return value, errors