util.coerce will attempt to coerce the my_map field of {:my_map => {'a_string_key', 'a_string_val'}} to a proto because the value is a hash. The proto constructor then fails.
Expected
util.coerce should convert hashes to protos only if they are message fields, not map fields.
Observed behavior
util.coerce
will attempt to coerce themy_map
field of{:my_map => {'a_string_key', 'a_string_val'}}
to a proto because the value is a hash. The proto constructor then fails.Expected
util.coerce
should convert hashes to protos only if they are message fields, not map fields.