ocaml-protoc
ocaml-protoc copied to clipboard
Generated default functions
I have an issue with the generated functions. I'm always getting functions like default_f ?field:int option ()
where it should be f ?field:int ()
. As opposed to the documentation. All my fields are optional in protobuf messages I use. Any idea?
let me check this week.
So yes I confirm in proto2 when a field is optional, the generated code for the default function could be nicer as you suggest.