You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is a feature request more than an actual issue.
tldr: Would it be possible to modify the OCaml generation to optionally emit a single OCaml module for all messages in a .proto file rather than a separate module for each of the messages?
A more reasoned request follows. Messages can be structured to follow a hierarchy, as in this example:
Especially in such cases, it would be useful to optionally have in output just an OCaml module with a type mirroring such a hierarchy, approximately of the form:
typea = {
is_something: bool;bs: blist;
}
and b = {
is_something_else: bool;content: [ `not_set | `Cofc | `Dofd ];
}
and c = { ... }
and d = {....}
Such an OCaml type hierarchy allows for easier navigation of the type structure than the current one. In particular, it would be easier to write a ppx for doing something on such a solution than the current one.
Does this sound reasonable? How hard would it be to make such a change?
The text was updated successfully, but these errors were encountered:
Hi,
Thanks for your work on this project.
This is a feature request more than an actual issue.
tldr: Would it be possible to modify the OCaml generation to optionally emit a single OCaml module for all messages in a
.proto
file rather than a separate module for each of the messages?A more reasoned request follows. Messages can be structured to follow a hierarchy, as in this example:
Especially in such cases, it would be useful to optionally have in output just an OCaml module with a type mirroring such a hierarchy, approximately of the form:
Such an OCaml type hierarchy allows for easier navigation of the type structure than the current one. In particular, it would be easier to write a
ppx
for doing something on such a solution than the current one.Does this sound reasonable? How hard would it be to make such a change?
The text was updated successfully, but these errors were encountered: