def validate_version(request):
    """Validate request version."""
    correct_version = request['jsonrpc'] == '2.0'
    error = 'Incorrect version of the JSON-RPC protocol'
    assert correct_version, error
