basho/erlang_protobuffs — pull request #28 by djnym (2012-08-17 20:32:32+00:00)
Title: Capitalized Entries in .proto overwriting record name

Given a file caps.proto with the contents

message WithCaps {
optional string nocaps = 1;
optional string CAPS = 2;
}

The following happens.

1> protobuffs_compile:scan_file(caps).
2> rr("*.hrl").
[withcaps]
3> caps_pb:decode_withcaps(caps_pb:encode(#withcaps{caps="hello"})).
{"hello",undefined,undefined}

Notice how the record name is being overridden with the value of the
capitalized field.