Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Azure Confidential Ledger TSP causes RUST emitter to fail

Open
#695 4 comments 0 reactions 1 assignee View on GitHub

@heaths is already working on this.

Since Mar 2, 2026.

Assessment

This issue has not been assessed yet.

Description

CodeGen design-discussion

https://github.com/Azure/azure-rest-api-specs/blob/dbdbc75c548071c0f5f0bdfae18dd1b31a7ab95a/specification/confidentialledger/Microsoft.CodeTransparency/main.tsp#L473

The problem appears to be related to the content-type header when handling errors - the rust emitter believes that there are conflicting content-type headers requested on errors.

Q:/src/azure-sdk-for-rust/sdk/confidentialledger/{namespace}/TempTypeSpecFiles/Microsoft.CodeTransparency/main.tsp:41:4 - error @azure-tools/typespec-rust/InternalError: The emitter encountered an internal error during preprocessing. Please open an issue at https://github.com/Azure/typespec-rust/issues and include the complete error message.
method getTransparencyConfigCbor has conflicting content types
Error: method getTransparencyConfigCbor has conflicting content types
    at getResponseFormat (file:///Q:/src/azure-sdk-for-rust/sdk/confidentialledger/%7Bnamespace%7D/TempTypeSpecFiles/node_modules/@azure-tools/typespec-rust/dist/src/tcgcadapter/adapter.js:1312:27)
    at Adapter.adaptMethod (file:///Q:/src/azure-sdk-for-rust/sdk/confidentialledger/%7Bnamespace%7D/TempTypeSpecFiles/node_modules/@azure-tools/typespec-rust/dist/src/tcgcadapter/adapter.js:1366:32)
    at Adapter.recursiveAdaptClient (file:///Q:/src/azure-sdk-for-rust/sdk/confidentialledger/%7Bnamespace%7D/TempTypeSpecFiles/node_modules/@azure-tools/typespec-rust/dist/src/tcgcadapter/adapter.js:1019:18)
    at Adapter.adaptClients (file:///Q:/src/azure-sdk-for-rust/sdk/confidentialledger/%7Bnamespace%7D/TempTypeSpecFiles/node_modules/@azure-tools/typespec-rust/dist/src/tcgcadapter/adapter.js:786:22)
    at Adapter.tcgcToCrate (file:///Q:/src/azure-sdk-for-rust/sdk/confidentialledger/%7Bnamespace%7D/TempTypeSpecFiles/node_modules/@azure-tools/typespec-rust/dist/src/tcgcadapter/adapter.js:76:14)
Dominant language
Rust
Stars
8
Forks
11
Avg merge
16h 4m
Merged PRs (30d)
5

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from Azure/typespec-rust

All issues in Azure/typespec-rust

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.