nervosnetwork / molecule

Another serialization system: minimalist and canonicalization.
MIT License
36 stars 23 forks source link

fix: union's default value should be first union item #67

Closed eval-exec closed 1 year ago

eval-exec commented 1 year ago

If there is a custom Union schema whose first item ID isn't 0, the default_content() of union may be wrong value. @yangby-cryptape @driftluo @code-monad