def get_field_reference(path):
    """Get a field indicator from the received path."""
    if isinstance(path[-1], int):
        field = ".".join(list(path)[:-1])
        ref = "item {} in '{}' field".format(path[-1], field)
    else:
        field = ".".join(path)
        ref = "'{}' field".format(field)
    return ref