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

Cannot deserialize Option<OffsetDateTime> for XML

Đang mở
#685 1 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 6/11/2025.

Đánh giá

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

Mô tả

Azure.Core Client

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:

  1. The XML deserializer represents <Start>2025-11-05T21:14:02.3927308Z</Start> as a map structure (with text content)
  2. The azure_core::time::rfc3339::option deserializer expects a simple string value
  3. 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

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.