def field_validator(field):
    """Decorate an entity method to make it a validator of the given `field`.

    Parameters
    ----------
    field : Any
        The field to validate.

    Returns
    -------
    Callable
        The decorated method.

    """
    return field.validator