On Wed, 2009-12-02 at 13:28 -0600, Ted Zlatanov wrote:
>
> struct AuthenticationRequest {
> 1: required map<string, string> credentials,
> }
>
> service Cassandra {
> ...
> void login(1: required string keyspace,
> 2: optional AuthenticationRequest auth_request)
> throws (1:AuthenticationException aux, 2:
> AuthorizationException azx),
> ...
> }
Did you maybe mean...?
struct AuthenticationRequest {
1: optional map<string, string> credentials,
}
service Cassandra {
...
void login(1:required string keyspace,
2:required AuthenticationRequest auth_request)
throws (1:AuthenticationException aux, 2:AuthorizationException azx),
...
}
i.e. AuthenticationRequest required for the method (has to be), but the
map is optional?
--
Eric Evans
[email protected]