Skip to content

Commit 6a739a5

Browse files
Update changelogs from fern repo (#5636)
Co-authored-by: dsinghvi <10870189+dsinghvi@users.noreply.github.com>
1 parent 3105442 commit 6a739a5

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
## 5.14.4
2+
**`(fix):`** Fix SSE union discrimination for both data-level and protocol-level contexts.
3+
4+
Data-level: Simplify `parse_sse_obj` to always parse the SSE `data` field as
5+
JSON instead of using runtime heuristics. This fixes incorrect routing when the
6+
discriminant field name (e.g., `event`) collides with an SSE envelope field.
7+
8+
Protocol-level: Generate an if/elif dispatch chain at code-generation time that
9+
routes on `_sse.event`, parsing each variant's data payload into its concrete
10+
type. No runtime heuristic — the generator decides the code path statically.
11+
12+

0 commit comments

Comments
 (0)