Clarify the interaction of `package` with generated OCam
Closed this issue · 2 comments
mransan commented
One simple solution could be to simply ignore the package annotation in the OCaml backend and simply let the file name to module be the only namespacing
for the generated types.
mransan commented
Note that right now the filename is not part of any of the Pbpt
nor Pbtt
. It would need to be added to support the above work.
mransan commented
This is done. The protobuf package specification are only used during the type resolution of the message.
The package are NOT used in the OCaml backend.
We rather prefer to be consistent with OCaml paradigm: one protobuf file will correspond to one OCaml file and therefore one OCaml module.