Skip to content

[specs] add sse tests#11239

Open
iscai-msft wants to merge 5 commits into
microsoft:mainfrom
iscai-msft:specs/addSse
Open

[specs] add sse tests#11239
iscai-msft wants to merge 5 commits into
microsoft:mainfrom
iscai-msft:specs/addSse

Conversation

@iscai-msft

Copy link
Copy Markdown
Member

fixes #6870

@microsoft-github-policy-service microsoft-github-policy-service Bot added the lib:http-specs For issues/prs related to the @typespec/http-specs package label Jul 13, 2026
@pkg-pr-new

pkg-pr-new Bot commented Jul 13, 2026

Copy link
Copy Markdown

Open in StackBlitz

npm i https://pkg.pr.new/@typespec/http-specs@11239
npm i https://pkg.pr.new/@typespec/spec-api@11239
npm i https://pkg.pr.new/@typespec/spector@11239

commit: 44bf8c6

@github-actions

github-actions Bot commented Jul 13, 2026

Copy link
Copy Markdown
Contributor

All changed packages have been documented.

  • @typespec/http-specs
  • @typespec/spec-api
  • @typespec/spector
Show changes

@typespec/http-specs - feature ✏️

Add SSE tests

@typespec/spec-api - feature ✏️

Add streamChunks support to MockBody for chunked SSE streaming in mock responses

@typespec/spector - feature ✏️

Support chunked streaming via streamChunks in mock response body

@azure-sdk-automation

azure-sdk-automation Bot commented Jul 13, 2026

Copy link
Copy Markdown

You can try these changes here

🛝 Playground 🌐 Website 🛝 VSCode Extension

Comment thread packages/http-specs/specs/streaming/sse/main.tsp
Comment thread packages/http-specs/specs/streaming/sse/mockapi.ts
- Rename 'Basic' namespace/route to 'Unnamed' to clarify the contrast
  with 'Named' events (unnamed = no event: field, named = event: field)
- Add streamChunks support to MockBody so the Named scenario streams
  events as separate writes rather than a single buffer
- Update spec-summary.md to match the rename

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 8c14dab8-cbc9-4389-a18b-fb13c41f9f57
@microsoft-github-policy-service microsoft-github-policy-service Bot added the spector Issues related to spector and the spec sets label Jul 16, 2026
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 8c14dab8-cbc9-4389-a18b-fb13c41f9f57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

lib:http-specs For issues/prs related to the @typespec/http-specs package spector Issues related to spector and the spec sets

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Streaming/SSE Scenario tests

2 participants