Open lorisleiva opened 3 months ago
If enum variants have custom discriminator values, we should consider using them when generating the enum in JavaScript or Rust.
enum MyEnum { First = 1, Second, Fifth = 5, }
The same goes for discriminated unions in JavaScript which is going to be a combination of the type discriminator and/or the codec's options.
type
If enum variants have custom discriminator values, we should consider using them when generating the enum in JavaScript or Rust.
The same goes for discriminated unions in JavaScript which is going to be a combination of the
type
discriminator and/or the codec's options.