Skip to content

Conversation

@weidongxu-microsoft
Copy link
Contributor

fix #9508

@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 Jan 30, 2026
@pkg-pr-new
Copy link

pkg-pr-new bot commented Jan 30, 2026

Open in StackBlitz

npm i https://pkg.pr.new/microsoft/typespec/@typespec/http@9527
npm i https://pkg.pr.new/microsoft/typespec/@typespec/http-client@9527
npm i https://pkg.pr.new/microsoft/typespec/@typespec/http-client-java@9527

commit: 8937aac

url: url;
nullableFloatDict: Record<float64 | null>;
encoded: Encoded;
encoding: Encoded;
Copy link
Contributor Author

@weidongxu-microsoft weidongxu-microsoft Jan 30, 2026

Choose a reason for hiding this comment

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

rename due to model with property name containing "code" will be skipped for mock test (as "code=value" likely trigger a report, like "key" or "credential" etc.)

@github-actions
Copy link
Contributor

All changed packages have been documented.

  • @typespec/http-client-java
Show changes

@typespec/http-client-java - fix ✏️

Missing example value for BinaryData type in mock test.

@azure-sdk
Copy link
Collaborator

azure-sdk commented Jan 30, 2026

You can try these changes here

🛝 Playground 🌐 Website 🛝 VSCode Extension

import com.azure.core.util.BinaryData;
import java.util.HashMap;
import java.util.Map;
import org.junit.jupiter.api.Assertions;
Copy link
Member

@haolingdong-msft haolingdong-msft Jan 30, 2026

Choose a reason for hiding this comment

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

May I understand why the these test files are deleted?

In Generate.ps1, I saw below codes are deleted, so from my understanding, tests will be generated? But I saw three tests deleted? This might be a bit confuse to me.

# for mgmt, do not generate tests due to random mock values
$tspOptions += " --option ""@typespec/http-client-java.generate-tests=false"""

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.

http-client-java, bug fix on generated test on required BinaryData

3 participants