Cannot deserialize Option<OffsetDateTime> for XML
@heaths is already working on this.
Since Nov 6, 2025.
Assessment
This issue has not been assessed yet.
Description
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
- Dominant language
- Rust
- Stars
- 8
- Forks
- 11
- Avg merge
- 16h 4m
- Merged PRs (30d)
- 5
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from Azure/typespec-rust
-
CodeGen rust
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Azure/typespec-rust#959 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 64/100
Azure/typespec-rust#1032 ·
-
CodeGen
Difficulty 4/5 3-5 days Newbie friendliness 35/100
Azure/typespec-rust#1029 ·
-
CodeGen
Difficulty 3/5 1-2 days Newbie friendliness 35/100
Azure/typespec-rust#1028 ·
-
CodeGen
Difficulty 3/5 1-2 days Newbie friendliness 55/100
Azure/typespec-rust#1020 ·
All issues in Azure/typespec-rust
Similar issues
-
discover: `sudo RTK_DISABLED=$VAR …` is not detected as a bypass when `sudo` is a transparent prefixOpenarea:cli bug good first issue priority:medium
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
Maintainers usually reply within 1 day
-
skill:code-review
Difficulty 1/5 1-3 hours Newbie friendliness 88/100
Maintainers usually reply within 1 day
-
component:sight
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
agentic-os-org/ANOLISA#4115 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
rivet-dev/rivet#5819 · 1 comment ·
Maintainers usually reply within 1 day
-
A-io-database bug needs triage python
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
Maintainers usually reply within 1 day