import click


def validate_name(ctx, param, value):
    """
    Returns a schema suffix. Raises an error if the suffix isn't lowercase.
    """
    if value and value != value.lower():
        raise click.BadParameter(f'value must be lowercase')

    return value