Skip to content

feat(http-specs): add HEAD payload scenario with response headers#10194

Open
Copilot wants to merge 3 commits intomainfrom
copilot/add-e2e-test-scenario
Open

feat(http-specs): add HEAD payload scenario with response headers#10194
Copilot wants to merge 3 commits intomainfrom
copilot/add-e2e-test-scenario

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Mar 30, 2026

  • Create packages/http-specs/specs/payload/head/main.tsp with getProperties HEAD operation
  • Create packages/http-specs/specs/payload/head/mockapi.ts with mock returning Content-Type and x-ms-meta response headers
  • Fix CI failure: update content-type from text/plain to text/plain; charset=utf-8 in mockapi.ts and scenarioDoc
  • Regenerate spec-summary.md
  • Add chronus changelog entry for @typespec/http-specs

🔒 GitHub Advanced Security automatically protects Copilot coding agent pull requests. You can protect all pull requests by enabling Advanced Security for your repositories. Learn more about Advanced Security.

Copilot AI and others added 2 commits March 30, 2026 05:22
Co-authored-by: weidongxu-microsoft <53292327+weidongxu-microsoft@users.noreply.github.com>
…gelog

Agent-Logs-Url: https://github.com/microsoft/typespec/sessions/39724eb3-1f39-4fa7-ac6f-8ff2ed9a37f5

Co-authored-by: weidongxu-microsoft <53292327+weidongxu-microsoft@users.noreply.github.com>
@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new bot commented Mar 30, 2026

Open in StackBlitz

npm i https://pkg.pr.new/@typespec/http-specs@10194

commit: 84089d7

@weidongxu-microsoft
Copy link
Copy Markdown
Contributor

@copilot

Validation seems has an error
https://github.com/microsoft/typespec/actions/runs/23729514485/job/69120607236?pr=10194

Maybe we can update in test and mockapi and summary to say return content-type is text/plain; charset=utf-8

… scenario

Agent-Logs-Url: https://github.com/microsoft/typespec/sessions/396839eb-f0c5-46c6-aea3-30bc0b49c85a

Co-authored-by: weidongxu-microsoft <53292327+weidongxu-microsoft@users.noreply.github.com>
Copy link
Copy Markdown
Contributor Author

Copilot AI commented Mar 30, 2026

@copilot

Validation seems has an error
...

Fixed in 84089d7 — updated content-type to text/plain; charset=utf-8 in mockapi.ts, the @scenarioDoc, and regenerated spec-summary.md.

@azure-sdk
Copy link
Copy Markdown
Collaborator

You can try these changes here

🛝 Playground 🌐 Website 🛝 VSCode Extension

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants