Files
zopu-code/repos/effect-smol/.changeset/fix-schema-union-dispatch-order.md

13 lines
607 B
Markdown

---
"effect": patch
---
Fix union candidate selection and decoding order so that unions now:
- consider matches from every sentinel key instead of dropping valid members after the first match;
- reject ambiguous `oneOf` inputs when members with different sentinel keys both match;
- preserve declared member order when combining discriminated members with non-discriminated fallbacks;
- commit concurrent decoding results in declaration order instead of completion order.
Reserved SSE failure event names with non-`Cause` data are now emitted as application events instead of producing a runtime defect.