Skip to content

[http-client-java] make Accept header with constant @clientDefaultValue required#10179

Draft
XiaofeiCao wants to merge 4 commits intomicrosoft:mainfrom
XiaofeiCao:accept_header_required
Draft

[http-client-java] make Accept header with constant @clientDefaultValue required#10179
XiaofeiCao wants to merge 4 commits intomicrosoft:mainfrom
XiaofeiCao:accept_header_required

Conversation

@XiaofeiCao
Copy link
Copy Markdown
Member

XiaofeiCao and others added 4 commits March 27, 2026 18:38
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@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 27, 2026
@github-actions
Copy link
Copy Markdown
Contributor

All changed packages have been documented.

  • @typespec/http-client-java
Show changes

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

Emitter support for constant optional Accept header with @clientDefaultValue. When an Accept header is optional with a constant type and has @Legacy.clientDefaultValue, the emitter now treats it as a required constant, ensuring the value is always sent and hidden from the public API.

@azure-sdk
Copy link
Copy Markdown
Collaborator

You can try these changes here

🛝 Playground 🌐 Website 🛝 VSCode Extension

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] emitter support for constant optional parameter with @clientDefaultValue

2 participants