Is your feature request related to a problem? Please describe.
I'm always frustrated when I want to design unions because currently
only inline messages and structs are allowed in the textual schema.
see: https://docs.bebop.sh/reference/union/
Describe the solution you'd like
I would like to define a format which contains multiple unions using the same message.
The wire format and binary schema already supports this approach.
see: https://docs.bebop.sh/reference/binary-schema/#union
Describe alternatives you've considered
I considered to define all messages in unions multiple times to get my use-case working.
So, I end up with much duplicated code and the same message with different names.
Additional context
Idea:
union Request {
1 -> Meta meta;
}
message Meta {
1 -> uint32 size;
2 -> string name;
}