Closed
Description
The best way of verifying correct behavior is probably to implement integration tests against the Showcase compliance suite, which test various data types.
Context: boolean fields seem to be not serialized correctly. I assigned True
to a proto.Field as a kwarg in the message constructor:
request = showcase_v1beta1.EnumRequest(unknown_enum = True)
and the Showcase server returns with an error. The Showcase server logs read:
error reading query params: terminal field "unknownEnum" of field path "unknownEnum" is of type "bool" with value string "True", which could not be parsed: could not parse "True" as a bool
which is mostly due to True being sent capitalized rather than lower-cased, as the JSON spec requires.
This is a blocker for launching REGAPIC.