Skip to content

[python] Bump Spector deps to enable datetime matcher support (PR #10011)#10245

Draft
Copilot wants to merge 3 commits intomainfrom
copilot/add-test-case-for-pull-10011
Draft

[python] Bump Spector deps to enable datetime matcher support (PR #10011)#10245
Copilot wants to merge 3 commits intomainfrom
copilot/add-test-case-for-pull-10011

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Apr 1, 2026

PR #10011 introduced match.dateTime semantic matchers into the Spector framework, updating encode/datetime, payload/xml, and payload/pageable mockapis to use flexible datetime comparison instead of exact string matching. The previously pinned versions of the Spector packages predate these changes, causing the existing Python mock API tests to fail against the updated mock server.

Changes

  • packages/http-client-python/package.json — bump three dev dependencies:

    Package Before After
    @typespec/http-specs 0.1.0-alpha.35 0.1.0-alpha.36-dev.3
    @typespec/spec-api 0.1.0-alpha.14-dev.1 0.1.0-alpha.14-dev.4
    @typespec/spector 0.1.0-alpha.24 0.1.0-alpha.25-dev.4
    • @typespec/http-specs@0.1.0-alpha.36-dev.3 — first release containing the updated mockapi files with match.dateTime matchers
    • @typespec/spec-api@0.1.0-alpha.14-dev.4 — adds the match export (matchers API)
    • @typespec/spector@0.1.0-alpha.25-dev.4 — adds matcher evaluation in the request processor (matchValues)

The existing tests for test_encode_datetime, test_payload_xml, and test_payload_pageable cover all affected scenarios and pass with these updated versions.

…atetime matchers + add changelog

Agent-Logs-Url: https://github.com/microsoft/typespec/sessions/1bbb3871-173c-4525-ae6f-a424e79a3f6a

Co-authored-by: msyyc <70930885+msyyc@users.noreply.github.com>
@microsoft-github-policy-service microsoft-github-policy-service bot added the emitter:client:python Issue for the Python client emitter: @typespec/http-client-python label Apr 1, 2026
Copilot AI changed the title [WIP] Add test case for pull request 10011 [python] Bump Spector deps to enable datetime matcher support (PR #10011) Apr 1, 2026
Copilot finished work on behalf of msyyc April 1, 2026 23:02
Copilot AI requested a review from msyyc April 1, 2026 23:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

emitter:client:python Issue for the Python client emitter: @typespec/http-client-python

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[python] add test case for https://github.com/microsoft/typespec/pull/10011

2 participants