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, use wire type for unknown encode #6244

Conversation

weidongxu-microsoft
Copy link
Contributor

@weidongxu-microsoft weidongxu-microsoft commented Mar 4, 2025

user can put any value in @encode decorator and apparently emitter cannot support all of them.

@encode("whatever-user-wanted")
prop: duration;

Hence fallback to wire type, with a warning.

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

azure-sdk commented Mar 4, 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 Mar 4, 2025

You can try these changes here

🛝 Playground 🌐 Website 🛝 VSCode Extension

@weidongxu-microsoft weidongxu-microsoft marked this pull request as ready for review March 4, 2025 09:24
@weidongxu-microsoft weidongxu-microsoft added this pull request to the merge queue Mar 4, 2025
Merged via the queue into microsoft:main with commit d4d5c3d Mar 4, 2025
26 checks passed
@weidongxu-microsoft weidongxu-microsoft deleted the http-client-java_fallback-wire-type-for-unknown-encode branch March 4, 2025 11:02
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