Let's say I have a topic defined as a union like this on one system:
union MyType switch (letterId) {
case a: TypeA typeA;
case b: TypeB typeB;
case c: TypeC typeC;
};
But another system is not interested in the topic in the event that the union is sent in the form of TypeC. In fact, defining TypeC itself has a large amount of dependencies and it would be more convenient to just omit it. Can I then define the topic in system 2 as this since they will still have the same name?
union MyType switch (letterId) {
case a: TypeA typeA;
case b: TypeB typeB;
};
Would it just not work at all? If it would work what would happen when it does receive a TypeC?