def METHOD_NAME(cli_runner, json_data_file):
    """Verify that validation messages are emitted for invalid data"""
    invalid_data = {**VALID_PERSON_1, "phone": "asdf"}
    data_path = json_data_file({"persons": [invalid_data]})
    result = cli_runner.invoke(cli, ["-S", PERSONINFO_SCHEMA, data_path])
    assert "[ERROR]" in result.output
    assert "'asdf' does not match" in result.output
    assert "/persons/0/phone" in result.output
    assert result.exit_code == 1