Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Dec 25, 2025

context: #3688

fix #3655

NOTE:

  • Since there is no existing typespec template for defining pageable LROs, I referred to the current LRO and paging templates to handle this case. Both typespec-autorest and typespec-python can generate this case as a pageable LRO.
  • Regarding runtime behavior, I have based it on the actual interactive process between client and service recorded here.

Copilot AI and others added 2 commits December 25, 2025 02:08
Co-authored-by: msyyc <70930885+msyyc@users.noreply.github.com>
Co-authored-by: msyyc <70930885+msyyc@users.noreply.github.com>
Copilot AI changed the title [WIP] Add Spector tests for pageable LROs Add Spector tests for pageable LROs Dec 25, 2025
Copilot AI requested a review from msyyc December 25, 2025 02:16
@pkg-pr-new
Copy link

pkg-pr-new bot commented Dec 25, 2025

Open in StackBlitz

npm i https://pkg.pr.new/Azure/typespec-azure/@azure-tools/azure-http-specs@3695

commit: 420c1f9

Co-authored-by: msyyc <70930885+msyyc@users.noreply.github.com>
Copilot AI requested a review from msyyc December 25, 2025 03:58
Copy link
Member

@weidongxu-microsoft weidongxu-microsoft left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Codegen is good for Java. I haven't run the mockapi though.

If Python run it and runtime is good, it would be good for me.

github-merge-queue bot pushed a commit to microsoft/typespec that referenced this pull request Jan 5, 2026
Mainly a bug fix, when method of lropaging contains more than one
response (and the 200 response is not the first in array).
Previous code took a too simplistic approach (of always checking the
first response in array in pageable op).

Tested with Azure/typespec-azure#3695, compile
pass, impl code looks correct.
May adjust more (if necessary), when verify that test case after
azure-http-specs publish.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Need Spector tests for pageable LROs

4 participants