Accepts validation result object and prints report (in red)

def print_validation_errors(result):
    """ Accepts validation result object and prints report (in red)"""
    click.echo(red('\nValidation failed:'))
    click.echo(red('-' * 40))
    messages = result.get_messages()
    for property in messages.keys():
        click.echo(yellow(property + ':'))
        for error in messages[property]:
            click.echo(red('* ' + error))
        click.echo('')