Closed geib closed 2 years ago
I have a .proto file with enum definitions, and when I generate the erlang code I find that the -spec definitions for fqbin_to_msg_name() and msg_name_to_fqbin() are swapped, see below snippet.
-spec msg_name_to_fqbin(_) -> no_return(). fqbin_to_msg_name(E) -> error({gpb_error, {badmsg, E}}). -spec fqbin_to_msg_name(_) -> no_return(). msg_name_to_fqbin(E) -> error({gpb_error, {badmsg, E}}).
Thanks but this is an issue with the proto generator gpb, https://github.com/tomas-abrahamsson/gpb, that is used to generate the protobuf encode/decode module.
Understood. Thanks.
I have a .proto file with enum definitions, and when I generate the erlang code I find that the -spec definitions for fqbin_to_msg_name() and msg_name_to_fqbin() are swapped, see below snippet.