Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Azure Confidential Ledger TSP causes RUST emitter to fail

Aperta
#695 4 commenti 0 reazioni 1 assegnatario Vedi su GitHub

@heaths ci sta già lavorando.

Dal 2/3/2026.

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

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)
Lingua principale
Rust
Stelle
8
Fork
11
Merge medio
16h 42m
PR unite (30g)
6

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di Azure/typespec-rust

Tutte le issue di Azure/typespec-rust

Issue simili

Altre issue su Rust

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.