Skip to content

[http specs] Add new test case for multipart - #9139

Merged
msyyc merged 12 commits into
mainfrom
http-specs-multipart-renaming-case
Jan 6, 2026
Merged

[http specs] Add new test case for multipart#9139
msyyc merged 12 commits into
mainfrom
http-specs-multipart-renaming-case

Conversation

@msyyc

@msyyc msyyc commented Dec 4, 2025

Copy link
Copy Markdown
Contributor

Add test case to cover scenarios of #9137 and #9136

This PR adds 2 cases:

  • set different wire name for http part
  • make file part optional

@pkg-pr-new

pkg-pr-new Bot commented Dec 4, 2025

Copy link
Copy Markdown

Open in StackBlitz

npm i https://pkg.pr.new/microsoft/typespec/@typespec/http@9139
npm i https://pkg.pr.new/microsoft/typespec/@typespec/http-client@9139
npm i https://pkg.pr.new/microsoft/typespec/@typespec/http-client-js@9139
npm i https://pkg.pr.new/microsoft/typespec/@typespec/http-specs@9139

commit: 80cd427

@github-actions

github-actions Bot commented Dec 4, 2025

Copy link
Copy Markdown
Contributor

All changed packages have been documented.

  • @typespec/http-client-js
  • @typespec/http-specs
Show changes

@typespec/http-specs - feature ✏️

Add new test case for multipart

@typespec/http-client-js - internal ✏️

skip multipart test case until bug is fixed to unblock new spector case merge

@azure-sdk

azure-sdk commented Dec 4, 2025

Copy link
Copy Markdown
Collaborator

You can try these changes here

🛝 Playground 🌐 Website 🛝 VSCode Extension

@msyyc
msyyc marked this pull request as ready for review December 5, 2025 05:29
@msyyc

msyyc commented Dec 5, 2025

Copy link
Copy Markdown
Contributor Author

The CI failure seems related with http-client-js which can't handle the new test case:

image CC. @MaryGao

@msyyc msyyc added the lib:http-specs For issues/prs related to the @typespec/http-specs package label Dec 5, 2025
github-merge-queue Bot pushed a commit that referenced this pull request Dec 8, 2025
@MaryGao

MaryGao commented Dec 8, 2025

Copy link
Copy Markdown
Member

The CI failure seems related with http-client-js which can't handle the new test case:

image CC. @MaryGao

@msyyc there are some generation issues for new cases. Could you help add them into ignore file? https://github.com/microsoft/typespec/blob/main/packages/http-client-js/.testignore

Comment thread packages/http-specs/specs/payload/multipart/main.tsp

@weidongxu-microsoft weidongxu-microsoft left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@msyyc
msyyc enabled auto-merge December 19, 2025 04:22
@msyyc
msyyc disabled auto-merge December 19, 2025 04:22
@msyyc

msyyc commented Dec 19, 2025

Copy link
Copy Markdown
Contributor Author

@timotheeguerin pls help review this PR, thanks!

@msyyc
msyyc enabled auto-merge December 19, 2025 04:23
@msyyc
msyyc added this pull request to the merge queue Jan 6, 2026
Merged via the queue into main with commit 86cedf9 Jan 6, 2026
27 checks passed
@msyyc
msyyc deleted the http-specs-multipart-renaming-case branch January 6, 2026 19:23
@microsoft-github-policy-service microsoft-github-policy-service Bot added the emitter:client:js Issue for the JS client emitter: @typespec/http-client-js label Jan 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

emitter:client:js Issue for the JS client emitter: @typespec/http-client-js 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.

5 participants