fix(http-specs): accept 7-digit fractional seconds datetime in ModelWithDatetime XML scenario#10016
Draft
fix(http-specs): accept 7-digit fractional seconds datetime in ModelWithDatetime XML scenario#10016
Conversation
…time XML scenario Co-authored-by: weidongxu-microsoft <53292327+weidongxu-microsoft@users.noreply.github.com>
Copilot created this pull request from a session on behalf of
weidongxu-microsoft
March 13, 2026 02:26
View session
3 tasks
commit: |
jorgerangel-msft
approved these changes
Mar 13, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
.NET/Windows clients serialize UTC datetimes with 7 fractional digit ticks (e.g.
2022-08-26T18:38:00.0000000Z), which is a valid ISO 8601 / RFC 3339 representation but was rejected by thePayload_Xml_ModelWithDatetimeValue_putmock handler.Changes
packages/http-specs/specs/payload/xml/mockapi.tsmodelWithDatetimeWindowsMsconstant containing the*.0000000Zform2022-08-26T18:38:00.000Z(canonical)2022-08-26T18:38:00Z(no ms, added in fix(spec-api): correct ModelWithDatetime rfc3339 value and remove invalid prettier call in XML validation #9995)2022-08-26T18:38:00.0000000Z(Windows/C# ticks) ← new