def ref(*args):
    """
    Turn a number of arguments to a JSON reference.

    >>> ref('definitions', 'MySchema')
    {'$ref': '#/definitions/MySchema'}

    Args:
        args (str): The reference path.

    Returns:
        :class:`dict`: A JSON reference to the input path.

    """
    return {'$ref': '/'.join(['#', *args])}
