def _validate_rstripped_str(value: str) ->str:
    """
    Ensure that value is a str that is rstripped of the / character.

    Args:
        value: The value to be validated and rstripped.
    Returns:
        The rstripped value.
    """
    value = str(value)
    return value.rstrip('/')
