Skip to content

Conversation

@msyyc
Copy link
Contributor

@msyyc msyyc commented Dec 4, 2025

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
Copy link

pkg-pr-new bot commented Dec 4, 2025

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: dbcbe03

@github-actions
Copy link
Contributor

github-actions bot commented Dec 4, 2025

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
Copy link
Collaborator

azure-sdk commented Dec 4, 2025

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
Copy link
Contributor Author

msyyc commented Dec 5, 2025

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
Copy link
Member

MaryGao commented Dec 8, 2025

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

const pngContents = new Uint8Array(pngBuffer);

describe("Payload.MultiPart", () => {
describe.skip("Payload.MultiPart", () => {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

After #9155 fixed, js could revert the change.
CC @MaryGao

Copy link
Member

@MaryGao MaryGao Dec 9, 2025

Choose a reason for hiding this comment

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

@joheredi the new mfd cases would fail the generation so here we skip the whold mfd cases. issue is tracked here: #9155.

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.

4 participants