Skip to content

http-client-java, codegen change, support query param reinjection #7668

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conversation

haolingdong-msft
Copy link
Member

Fix Azure/autorest.java#3081

Design:
Azure/autorest.java#3081 (comment)

Code change:

  1. PagingMetadata.java: add nextLinkReInjectedParameterNames property and logics to extract the value from xmsPageable and put to MethodPageDetails.
  2. MethodPageDetails.java: add nextLinkReInjectedParameterNames property and corresponding ctor, getters.
  3. ClientMethodTemplate.java: add logic addQueryParameterReInjectionLogic and apply to both sync and async paging service client method.

@microsoft-github-policy-service microsoft-github-policy-service bot added the emitter:client:java Issue for the Java client emitter: @typespec/http-client-java label Jun 17, 2025
Copy link
Contributor

No changes needing a change description found.

@azure-sdk
Copy link
Collaborator

azure-sdk commented Jun 17, 2025

You can try these changes here

🛝 Playground 🌐 Website 🛝 VSCode Extension

@haolingdong-msft haolingdong-msft marked this pull request as ready for review June 18, 2025 02:13
Copy link
Contributor

@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.

LGTM

@haolingdong-msft haolingdong-msft added this pull request to the merge queue Jun 20, 2025
Merged via the queue into microsoft:main with commit 6dc4aea Jun 20, 2025
25 checks passed
@haolingdong-msft haolingdong-msft deleted the tsp-query-param-reinjection-codegen branch June 20, 2025 02:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
emitter:client:java Issue for the Java client emitter: @typespec/http-client-java
Projects
None yet
Development

Successfully merging this pull request may close these issues.

tsp, Paging: Query parameter re-injection
4 participants