Skip to content

Conversation

@v-jiaodi
Copy link
Member

@v-jiaodi v-jiaodi commented Nov 6, 2025

fixes #8405

@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 Nov 6, 2025
@github-actions
Copy link
Contributor

github-actions bot commented Nov 6, 2025

All changed packages have been documented.

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

@typespec/http-specs - feature ✏️

Add test cases for bytes with non application json content type

@typespec/spector - feature ✏️

Add test cases for bytes with non application json content type

@azure-sdk
Copy link
Collaborator

azure-sdk commented Nov 6, 2025

You can try these changes here

🛝 Playground 🌐 Website 🛝 VSCode Extension

Comment on lines +384 to +386
op cose(
@header
contentType: "application/cose",
Copy link
Member Author

Choose a reason for hiding this comment

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

There is currently an issue on the server side for request, input coseData, but always get undefined.

Copy link
Member Author

Choose a reason for hiding this comment

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

https://github.com/microsoft/typespec/blob/main/packages/spector/src/server/server.ts#L71

this.app.use(
      bodyParser.raw({
        type: ["application/octet-stream", "image/png", "application/jsonl"],
        limit: "10mb",
        verify: rawBinaryBodySaver,
      }),
    );
    this.app.use(multer().any() as any);

@pkg-pr-new
Copy link

pkg-pr-new bot commented Nov 18, 2025

Open in StackBlitz

npm i https://pkg.pr.new/microsoft/typespec/@typespec/http@8941
npm i https://pkg.pr.new/microsoft/typespec/@typespec/http-specs@8941
npm i https://pkg.pr.new/microsoft/typespec/@typespec/spector@8941

commit: f1c1608

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.

[http-spec] Add test cases for bytes with non application json content type

3 participants