Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Azure Confidential Ledger TSP causes RUST emitter to fail

Đang mở
#695 4 bình luận 0 reaction 1 người được giao Xem trên GitHub

@heaths đang làm issue này rồi.

Từ ngày 2/3/2026.

Đánh giá

Issue này chưa được đánh giá.

Mô tả

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)
Ngôn ngữ chính
Rust
Star
8
Fork
11
Merge trung bình
16 giờ 42 phút
Pull request đã merge (30 ngày)
6

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của Azure/typespec-rust

Tất cả issue của Azure/typespec-rust

Issue tương tự

Thêm issue về Rust

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.