Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Cannot deserialize Option<OffsetDateTime> for XML

オープン
#685 コメント 1 件 リアクション 0 件 担当者 1 名 GitHub で見る

@heaths がすでに取り組んでいます。

2025年11月6日 から。

評価

この issue はまだ評価されていません。

説明

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

主要言語
Rust
スター
8
フォーク
11
平均マージ
16時間 42分
マージ済み PR(30日)
6

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

Azure/typespec-rust のほかの issue

Azure/typespec-rust の issue をすべて見る

似ている issue

Rust の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。