Skip to content
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

http-client-java, bug fix, parameter name mismatch in op and in convenienceApi #6162

Conversation

weidongxu-microsoft
Copy link
Contributor

@weidongxu-microsoft weidongxu-microsoft commented Feb 26, 2025

maxpagesize get renamed to client name maxPageSize, but param in convenienceApi was not renamed. This causes NPE when matching the parameters.

Also add a protection in example generation code (with a warning), so even in case there is problem, it won't crash there.

PR include some update to diagnostic, that now it includes all stack/stdout/stderr, as I found it easier to get all the information without re-run the whole process -- which may not be controlled by us.

autorest.java Azure/autorest.java#3032

@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 Feb 26, 2025
@azure-sdk
Copy link
Collaborator

azure-sdk commented Feb 26, 2025

❌ There is undocummented changes. Run chronus add to add a changeset or click here.

The following packages have changes but are not documented.

  • @typespec/http-client-java
Show changes

@azure-sdk
Copy link
Collaborator

azure-sdk commented Feb 26, 2025

You can try these changes here

🛝 Playground 🌐 Website 🛝 VSCode Extension

@weidongxu-microsoft weidongxu-microsoft added this pull request to the merge queue Feb 27, 2025
Merged via the queue into microsoft:main with commit c75dfda Feb 27, 2025
26 checks passed
@weidongxu-microsoft weidongxu-microsoft deleted the http-client-java_fix-example-node-payload-flatten branch February 27, 2025 04:05
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.

3 participants