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, unknown default to Java Object #4868

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

weidongxu-microsoft
Copy link
Contributor

@weidongxu-microsoft weidongxu-microsoft commented Oct 25, 2024

DO NOT MERGE, unless there is a need to release a typespec-java with new changes in code, and we hadn't reached a decision of whether default to BinaryData or Object (or reached a decision to use Object as default).

If we merge this, the Generate.ps1 in autorest.java would need similar changes after bump core version and copy the test code.
https://github.com/microsoft/typespec/pull/4868/files#diff-5824bda07f6bda3ae83248b67a7418ac97b6da3a726ff5f17f8d6d976915031e

@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 Oct 25, 2024
@azure-sdk
Copy link
Collaborator

No changes needing a change description found.

@azure-sdk
Copy link
Collaborator

You can try these changes here

🛝 Playground 🌐 Website 📚 Next docs

@weidongxu-microsoft weidongxu-microsoft force-pushed the http-client-java_unknown-default-to-object branch from 2fbc0ea to 882d590 Compare October 25, 2024 05:37
@weidongxu-microsoft weidongxu-microsoft force-pushed the http-client-java_unknown-default-to-object branch from 882d590 to d4faa6b Compare October 25, 2024 05:59
@@ -30,7 +30,7 @@ public class EmitterOptions implements JsonSerializable<EmitterOptions> {
private String customizationClass;
private Boolean includeApiViewProperties = true;

private Boolean useObjectForUnknown = false;
private Boolean useObjectForUnknown = true;
Copy link
Contributor Author

@weidongxu-microsoft weidongxu-microsoft Oct 25, 2024

Choose a reason for hiding this comment

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

There should be a nominal use-object-for-unknown default to true in emitter.ts (it won't take effect). Though currently it was true there (a prior mistake).

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.

2 participants