1.12.0-rc15
(feat):
Generate discriminated unions with:
- Type safety with compile-time checking
- Exhaustive discriminant value matching
- JSON serialization support
Here’s a simple example how to use a shape discriminated union:
This feature is off by default for backward compatibility.
To enable it, set use-discriminated-unions
to true
in the generator configuration.
(feat):
Improved serialization tests for generated classes for normal objects and discriminated unions.
(feat):
Generated classes now follow the C# convention for odering consts, fields, constructors, properties, methods, operators, and inner classes.