Skip to content

chore(seed): add SSE event with protocol-level discriminant key collision#13991

Merged
jsklan merged 6 commits intomainfrom
jsklan/fix-sse-test
Mar 24, 2026
Merged

chore(seed): add SSE event with protocol-level discriminant key collision#13991
jsklan merged 6 commits intomainfrom
jsklan/fix-sse-test

Conversation

@jsklan
Copy link
Copy Markdown
Contributor

@jsklan jsklan commented Mar 24, 2026

Description

Follow-on to #13940. Updates the server-sent-event-examples test definition to cover the edge case where an SSE event's data contains a key (event) that collides with the protocol-level SSE discriminant field.

Changes Made

  • Discriminant collision: Renamed the notification variant to event in StreamEventContextProtocol, so the discriminant value matches a field name in the event data
  • EventEvent type: Added an event: string property to EventEvent, creating a payload that contains the same key as the SSE protocol discriminant
  • Updated examples: Adjusted stream examples to exercise the new event variant with both name and event fields in the data payload

Testing

  • Test definition validates
  • Seed fixtures updated

Open with Devin

@github-actions
Copy link
Copy Markdown
Contributor

🌱 Seed Test Selector

Select languages to run seed tests for:

  • Python
  • TypeScript
  • Java
  • Go
  • Ruby
  • C#
  • PHP
  • Swift
  • Rust
  • OpenAPI
  • Postman

How to use: Click the ⋯ menu above → "Edit" → check the boxes you want → click "Update comment". Tests will run automatically and snapshots will be committed to this PR.

@fern-support fern-support changed the title Update test definition chore(seed): add SSE event with protocol-level discriminant key collision Mar 24, 2026
@jsklan jsklan marked this pull request as ready for review March 24, 2026 18:00
@jsklan jsklan closed this Mar 24, 2026
Copy link
Copy Markdown

@claude claude bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Code review skipped — your organization's overage spend limit has been reached.

Code review is billed via overage credits. To resume reviews, an organization admin can raise the monthly limit in Settings → Usage.

Once credits are available, reopen this pull request to trigger a review.

@jsklan jsklan reopened this Mar 24, 2026
devin-ai-integration[bot]

This comment was marked as resolved.

@jsklan jsklan closed this Mar 24, 2026
@jsklan jsklan reopened this Mar 24, 2026
@jsklan jsklan enabled auto-merge (squash) March 24, 2026 18:40
@jsklan jsklan merged commit b398077 into main Mar 24, 2026
299 checks passed
@jsklan jsklan deleted the jsklan/fix-sse-test branch March 24, 2026 18:57
HoaX7 pushed a commit to HoaX7/fern that referenced this pull request Mar 25, 2026
…sion (fern-api#13991)

* Update test definition

* chore: update test snapshots

* dedupe name in yml, remove test case that confuses fern check

* chore: update test snapshots

* Move server-sent-event-examples to allowedFailures for go-model, csharp-sdk, and csharp-model

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants