Jaroslav Burian
08/12/2022, 8:24 AM"request", StringValue.of("aaa"),
"response", Map.of("id", "bbb")
Maybe I am not calling it correct but
interaction.getRequest().getContents().getValue()
is empty
(with Map.of("email", "aaa")
it works fine)Jaroslav Burian
08/12/2022, 8:47 AMMap.of("email", StringValue.of("<mailto:a@a.com|a@a.com>"))
also returns the MISSING bodyuglyog
uglyog
Jaroslav Burian
08/15/2022, 6:12 AMsyntax = "proto3";
import "google/protobuf/wrappers.proto";
package area_calculator;
option php_generic_services = true;
option go_package = "io.pact/area_calculator";
service Calculator {
rpc getUserByEmail(UserEmail) returns (User) {}
rpc getUserByEmailGoogle(google.protobuf.StringValue) returns (User) {}
rpc getUserByEmailGoogleMessage(UserEmailGoogle) returns (User) {}
}
message UserEmailGoogle {
google.protobuf.StringValue email = 1;
}
message UserEmail {
string email = 1;
}
message User {
string id = 1;
}
Jaroslav Burian
08/15/2022, 6:12 AMuglyog
google.protobuf.StringValue
, ok I'll give that a goJaroslav Burian
08/15/2022, 6:15 AMStringValue.of
is from google.protobuf
I am also planning to ask my devs why do they use it instead of string
today 🤔uglyog
string
won't work (that is what I tried), it has to be a message type and that is a primitiveJaroslav Burian
08/15/2022, 1:27 PMStringValue
looks like
message StringValue {
// The string value.
string value = 1;
}
uglyog
"request", "aaa",
"response", Map.of("id", "bbb")