An idea @r0l1 had today was to extend orbit so that it supports type switches. Say you have the structs IntValue, FloatValue, etc.., but want to make one API call that says getValue(id string) AnyValue.
The AnyValue in the example could be expressed as a union type union(IntValue, FloatValue) and would have to be specially encoded/decoded by orbit under the hood
An idea @r0l1 had today was to extend orbit so that it supports type switches. Say you have the structs
IntValue,FloatValue, etc.., but want to make one API call that saysgetValue(id string) AnyValue.The
AnyValuein the example could be expressed as a union typeunion(IntValue, FloatValue)and would have to be specially encoded/decoded by orbit under the hood