Cannot deserialize Option<OffsetDateTime> for XML
@heaths đang làm issue này rồi.
Từ ngày 6/11/2025.
Đánh giá
Issue này chưa được đánh giá.
Mô tả
The problem is that azure_core::time::rfc3339::option is designed for JSON deserialization where datetime values are simple strings. In XML, element content needs special handling. The XML deserializer sees <Start>2025-11-05T21:14:02.3927308Z</Start> as a map with a text node, not as a simple string.
The timestamp fails to deserialize because:
- The XML deserializer represents
<Start>2025-11-05T21:14:02.3927308Z</Start>as a map structure (with text content) - The
azure_core::time::rfc3339::optiondeserializer expects a simple string value - There's a mismatch between XML's structural representation and what the RFC3339 deserializer expects
I expect this may be a problem with quick-xml and will debug the issue. Hopefully I can get a PR merged wherever the issue is to fix this upstream.
Originally posted by @heaths in https://github.com/Azure/typespec-rust/pull/682#discussion_r2500509136
- Ngôn ngữ chính
- Rust
- Star
- 8
- Fork
- 11
- Merge trung bình
- 17 giờ 26 phút
- Pull request đã merge (30 ngày)
- 6
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của Azure/typespec-rust
-
CodeGen rust
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Azure/typespec-rust#959 ·
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 64/100
Azure/typespec-rust#1032 · 16 bình luận ·
-
CodeGen
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
Azure/typespec-rust#1029 ·
-
CodeGen
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 35/100
Azure/typespec-rust#1028 ·
-
CodeGen
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 55/100
Azure/typespec-rust#1020 ·
Tất cả issue của Azure/typespec-rust
Issue tương tự
-
rustix::termios::Termios::OutputModes does not expost some const e.g. OLCUC for musl and macOSĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
bytecodealliance/rustix#1706 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 11 ngày
-
`LazyFrameRemote` and `ExecuteRemote` sinks do not accept `Path`, like `LazyFrame` sinks do.Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
-
Bump anybuf version to ^1.0.0Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
wormhole-foundation/wormhole#5062 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
Maintainer thường phản hồi trong vòng 1 ngày
-
RUSTSEC-2026-0348: Brotli certificate decompression can allocate up to 1 GiB before authenticationĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 60/100